Project

imuzer

0.0
No commit activity in last 3 years
No release in over 3 years
This gem uses the iMuze (imuze.io) API to generate music. You'll need an account on iMuze.io in order to use it.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 1.7
~> 10.0
>= 0
~> 3

Runtime

= 2.13.4
~> 1.8.3
~> 1.9.2
~> 2.1.0
 Project Readme

Codeship Status for imuze/ruby-imuzer

Imuzer

imuzer is a minimalistic gem that lets you generate music from the online music generation platform imuze.io.

Pre-requisits

  • You will need an account on iMuze in order to use it.
  • You will need to install mpg123 to actually listen the mp3

Installation

$ gem install imuzer

Usage

[yacin@mac imuzer (master)]$ bundle exec bin/imuzer -h
NAME
    imuzer - a demo tool for iMuze API

SYNOPSIS
    imuzer [global options] command [command options] [arguments...]

GLOBAL OPTIONS
    -e, --email=email       - Email from your iMuze user account (default: none)
    --help                  - Show this message
    -p, --password=password - Password from your iMuze user account (default: none)
    -v, --[no-]verbose      - Be verbose

COMMANDS
    compose - composes a music
    genres  - list all musical genres and subgenres
    help    - Shows a list of commands or help for one command

Example 1: list all musical genres

[yacin@mac imuzer (master)]$ imuzer genres

Example 2: compose and play music

[yacin@mac imuzer (master)]$ imuzer -e 'me@example.com' -p 'thispiggywent' compose rock dynamic 30000 'calm:0.2,medium:0.4,dynamic:0.2,calm:0.2'

Example 3: compose and download music

[yacin@mac imuzer (master)]$ imuzer -e 'me@example.com' -p 'thispiggywent' compose rock dynamic 30000 'calm:0.2,medium:0.4,dynamic:0.2,calm:0.2' -d

note: flag -d at the end of the command line

Example 3: compose and play music with low volume on vocals (-10db)

[yacin@mac imuzer (master)]$ bundle exec bin/imuzer compose -h
NAME
    compose - composes a music

SYNOPSIS
    imuzer [global options] compose [command options] genre subgenre duration structure

COMMAND OPTIONS
    -c, --[no-]crop               -
    -d, --[no-]download           -
    --fadeout_ms=fadeout_ms       - fadeout in milliseconds (default: none)
    --voices_volume=voices_volume - volume of voice track (default: none)


[yacin@mac imuzer (master)]$ imuzer -e 'me@example.com' -p 'thispiggywent' compose rock dynamic 30000 'calm:0.2,medium:0.4,dynamic:0.2,calm:0.2' --voices_volume=-10

note: flag --voices_volume=-10 db at the end of the command line

Contributing

  1. Fork it ( https://github.com/[my-github-username]/imuzer/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request