imuzer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +43 -24
- data/imuzer.gemspec +1 -1
- data/lib/imuze/get_music.rb +1 -2
- data/lib/imuzer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffdee14a294e5180db2bc56ab9c53707f86e9264
|
4
|
+
data.tar.gz: d30512db2df9261c4078e519aa8364b368e880d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 921f5279b906db56b4fcd1332fded0a776c415ebb4d7aa040a660c76f56f5ac1ddfa34c135a20db236f2210e2d96d29dae82c66504f40c7866d22e002b3a596e
|
7
|
+
data.tar.gz: 8d70ae20573957a1545e154f41fa3505703432b7c6d20455dbd0d5b34db85130346084a51545e76abe2a0533191e2100a391e8cb310bfc51bec8e28eadbb0508
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -13,38 +13,57 @@ imuzer is a minimalistic gem that lets you generate music from the online music
|
|
13
13
|
|
14
14
|
## Usage
|
15
15
|
|
16
|
-
[yacin@mac imuzer (master)]$ imuzer -h
|
16
|
+
[yacin@mac imuzer (master)]$ bundle exec bin/imuzer -h
|
17
|
+
NAME
|
18
|
+
imuzer - a demo tool for iMuze API
|
17
19
|
|
18
|
-
|
20
|
+
SYNOPSIS
|
21
|
+
imuzer [global options] command [command options] [arguments...]
|
19
22
|
|
20
|
-
|
23
|
+
GLOBAL OPTIONS
|
24
|
+
-e, --email=email - Email from your iMuze user account (default: none)
|
25
|
+
--help - Show this message
|
26
|
+
-p, --password=password - Password from your iMuze user account (default: none)
|
27
|
+
-v, --[no-]verbose - Be verbose
|
21
28
|
|
22
|
-
|
29
|
+
COMMANDS
|
30
|
+
compose - composes a music
|
31
|
+
genres - list all musical genres and subgenres
|
32
|
+
help - Shows a list of commands or help for one command
|
23
33
|
|
24
|
-
|
25
|
-
-h, --help Show command line help
|
26
|
-
-e, --email email your imuze account email
|
27
|
-
-p, --password password your imuze password
|
28
|
-
-v, --verbose Be verbose
|
29
|
-
--version Show help/version info
|
30
|
-
--log-level LEVEL Set the logging level
|
31
|
-
(debug|info|warn|error|fatal)
|
32
|
-
(Default: info)
|
34
|
+
### Example 1: list all musical genres
|
33
35
|
|
34
|
-
|
36
|
+
[yacin@mac imuzer (master)]$ imuzer genres
|
35
37
|
|
36
|
-
|
37
|
-
Track duration
|
38
|
-
genre
|
39
|
-
Track genre
|
40
|
-
subgenre
|
41
|
-
Track subgenre
|
42
|
-
structure
|
43
|
-
Track structure
|
38
|
+
### Example 2: compose and play music
|
44
39
|
|
45
|
-
|
40
|
+
[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'
|
46
41
|
|
47
|
-
|
42
|
+
### Example 3: compose and download music
|
43
|
+
|
44
|
+
[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
|
45
|
+
|
46
|
+
_note_: flag `-d` at the end of the command line
|
47
|
+
|
48
|
+
### Example 3: compose and play music with low volume on vocals (-10db)
|
49
|
+
|
50
|
+
[yacin@mac imuzer (master)]$ bundle exec bin/imuzer compose -h
|
51
|
+
NAME
|
52
|
+
compose - composes a music
|
53
|
+
|
54
|
+
SYNOPSIS
|
55
|
+
imuzer [global options] compose [command options] genre subgenre duration structure
|
56
|
+
|
57
|
+
COMMAND OPTIONS
|
58
|
+
-c, --[no-]crop -
|
59
|
+
-d, --[no-]download -
|
60
|
+
--fadeout_ms=fadeout_ms - fadeout in milliseconds (default: none)
|
61
|
+
--voices_volume=voices_volume - volume of voice track (default: none)
|
62
|
+
|
63
|
+
|
64
|
+
[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
|
65
|
+
|
66
|
+
_note_: flag `--voices_volume=-10 db` at the end of the command line
|
48
67
|
|
49
68
|
## Contributing
|
50
69
|
|
data/imuzer.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ['yacin@imuze.io']
|
11
11
|
spec.summary = %q{Generate music with iMuze.}
|
12
12
|
spec.description = %q{This gem uses the iMuze (imuze.io) API to generate music. You'll need an account on iMuze.io in order to use it.}
|
13
|
-
spec.homepage = 'https://
|
13
|
+
spec.homepage = 'https://github.com/imuze/ruby-imuzer'
|
14
14
|
spec.license = 'custom'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/imuze/get_music.rb
CHANGED
@@ -24,7 +24,7 @@ module Imuze
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def command_download
|
27
|
-
command = %Q(wget "http:#{mp3_uri}" -O #{mp3_id}.mp3)
|
27
|
+
command = %Q(wget "http:#{mp3_uri}" -O #{mp3_id}.mp3 --header "Authorization: #{token}")
|
28
28
|
sh command do |stdout, stderr|
|
29
29
|
puts 'We hope you liked it !'
|
30
30
|
end
|
@@ -35,7 +35,6 @@ module Imuze
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def mp3_id
|
38
|
-
puts mp3_uri.split('/')
|
39
38
|
mp3_uri.split('/')[4]
|
40
39
|
end
|
41
40
|
end
|
data/lib/imuzer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imuzer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yacin Bahi
|
@@ -166,7 +166,7 @@ files:
|
|
166
166
|
- lib/imuzer.rb
|
167
167
|
- lib/imuzer/version.rb
|
168
168
|
- spec/something_spec.rb
|
169
|
-
homepage: https://
|
169
|
+
homepage: https://github.com/imuze/ruby-imuzer
|
170
170
|
licenses:
|
171
171
|
- custom
|
172
172
|
metadata: {}
|