midinous 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '079665070d285a0b838f78c94e2e718da1ecc3e441672d1e964e8e860395ad2c'
4
- data.tar.gz: 139ccacf5c3a4b960843c33382dbe8e11ef1badde93aa5586c71dc9e519714a7
3
+ metadata.gz: 8143543b40e4f426b79070ef11adab60278e82a243eb3b0c807c66a7604aa284
4
+ data.tar.gz: 2b2cdbc15582f14f83d7ebd241fa005b9f50fe4ce280693662863b9db99332d2
5
5
  SHA512:
6
- metadata.gz: 771a7d8cb16e0d73ece1d4d8ba41488c5e178fcfd02d464ea69aeccc4ffc62d9ebd3f4d4e658be551ebc5b39efa1713103ceec8e948a2294e81005a99bac3b6d
7
- data.tar.gz: a200618d13347c5e0fb5c1535d48f5596c5755a029636b1ff383296c771e345db3a95ab94d99eadea936e4789e0a3d94b68dcfe8312467cd15e70ccf19f0bb6e
6
+ metadata.gz: 39b8a6ae9d7a57f6c36e6091764416a9895ca8a2267d9664673af86a7f4009dbdf68cacb8ef432b2a28e838523c1d321b3efdbab0c9f722b562aff53d7a2d213
7
+ data.tar.gz: 2a465810f796fca28528dd8abcd10e084b8b2f98b8c838e53d96654ed8c07a3a0cc9184a9766ee14bd74ca2c64dbec41c3d256a3fe7c0eda2b68f1def6c52354
data/README.md CHANGED
@@ -7,6 +7,7 @@ Midinous combines generative features with a grid-based GUI to offer a supplemen
7
7
  * [GTK3](http://www.gtk.org/) 3.3.6 or later
8
8
  * Midinous is designed to run on 64-bit architectures
9
9
  * You must have 64-bit Ruby version 2.5.5 installed with the devkit and MSYS2
10
+ * It is recommended you use a virtual MIDI cable program for use with Midinous on Windows
10
11
 
11
12
  ## Install
12
13
 
@@ -44,16 +44,21 @@ class Proc_Midi
44
44
  attr_accessor :out_list, :in_list
45
45
  attr_reader :out_id, :in_id, :in, :midi_in
46
46
  def initialize(oid,iid)
47
+ @out_list = []
48
+ @in_list = []
49
+
47
50
  @out_id = oid
48
51
  @out_list = UniMIDI::Output.all
49
52
  @out = UniMIDI::Output.use(@out_id)
50
53
 
51
54
  @in_id = iid
52
- @in = UniMIDI::Input.use(@in_id)
53
55
  @in_list = UniMIDI::Input.all
54
- @midi_in = GuiListener.new(@in)
55
- @midi_in.listen_for(:class => [MIDIMessage::NoteOn,MIDIMessage::NoteOff]) {|e| Pl.set_note(e[:message].note.clamp(0,127))}
56
- @midi_in.gui_listen
56
+ unless @in_list.empty?
57
+ @in = UniMIDI::Input.use(@in_id)
58
+ @midi_in = GuiListener.new(@in)
59
+ @midi_in.listen_for(:class => [MIDIMessage::NoteOn,MIDIMessage::NoteOff]) {|e| Pl.set_note(e[:message].note.clamp(0,127))}
60
+ @midi_in.gui_listen
61
+ end
57
62
  end
58
63
 
59
64
  #Select the output device
@@ -290,7 +290,11 @@ class UI_Elements
290
290
  end
291
291
 
292
292
  def regen_status
293
- status_area.text = "Using: Output[#{Pm.out_list[Pm.out_id].name}] Input[#{Pm.in_list[Pm.in_id].name}]"
293
+ unless Pm.in_list.empty?
294
+ status_area.text = "Using: Output[#{Pm.out_list[Pm.out_id].name}] Input[#{Pm.in_list[Pm.in_id].name}]"
295
+ else
296
+ status_area.text = "Using: Output[#{Pm.out_list[Pm.out_id].name}]"
297
+ end
294
298
  end
295
299
 
296
300
  #Set up accelerators (keyboard shortcuts)
data/lib/midinous.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  # Copyright (C) 2019 James "Nornec" Ratliff
2
- #
3
2
  # Midinous is free software: you can redistribute it and/or modify
4
3
  # it under the terms of the GNU General Public License as published by
5
4
  # the Free Software Foundation, either version 3 of the License, or
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: midinous
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James "Nornec" Ratliff