imuzer 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f60d92779e8bceab0ac1f98f86797bd008bd1ed9
4
- data.tar.gz: 70810d9b916f35483cf47db657d926ce57bd5e83
3
+ metadata.gz: ffdee14a294e5180db2bc56ab9c53707f86e9264
4
+ data.tar.gz: d30512db2df9261c4078e519aa8364b368e880d7
5
5
  SHA512:
6
- metadata.gz: 74426b2fe5a9649f6c8a26d7790bb3e82115f047bfb26558ea234722526fc18d2cf53abe5b92443938dd2df695fff997a4695d51ebe70dadc2f6888f0e0e7af2
7
- data.tar.gz: 50235a18ef3500e9b4730c1793298946a56aa908b6a1a8c63ac4d43e65f4905e87993704ab8be52c15e2b88562aefac6de117c05abbe1d367fdcc9d411bb1eba
6
+ metadata.gz: 921f5279b906db56b4fcd1332fded0a776c415ebb4d7aa040a660c76f56f5ac1ddfa34c135a20db236f2210e2d96d29dae82c66504f40c7866d22e002b3a596e
7
+ data.tar.gz: 8d70ae20573957a1545e154f41fa3505703432b7c6d20455dbd0d5b34db85130346084a51545e76abe2a0533191e2100a391e8cb310bfc51bec8e28eadbb0508
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- imuzer (0.0.3)
4
+ imuzer (0.0.4)
5
5
  gli (= 2.13.4)
6
6
  json (~> 1.8.3)
7
7
  methadone (~> 1.9.2)
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
- Usage: imuzer [options] duration genre subgenre structure
20
+ SYNOPSIS
21
+ imuzer [global options] command [command options] [arguments...]
19
22
 
20
- Composes a track with iMuze
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
- v0.0.1
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
- Options:
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
- Arguments:
36
+ [yacin@mac imuzer (master)]$ imuzer genres
35
37
 
36
- duration
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
- Bellow is an example on how to use the tool:
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
- [yacin@mac imuzer (master)]$ imuzer -v -e MYEMAIL -p MYPASSWORD 30000 edm soft 'calm:0.3,medium:0.3,dynamic:0.3'
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://rubygems.org/gems/imuzer'
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")
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Imuzer
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
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.3
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://rubygems.org/gems/imuzer
169
+ homepage: https://github.com/imuze/ruby-imuzer
170
170
  licenses:
171
171
  - custom
172
172
  metadata: {}