midinous 1.0.1 → 1.0.2
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 +4 -4
- data/README.md +1 -0
- data/lib/midinous/proc_midi.rb +9 -4
- data/lib/midinous/style/ui.rb +5 -1
- data/lib/midinous.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8143543b40e4f426b79070ef11adab60278e82a243eb3b0c807c66a7604aa284
|
4
|
+
data.tar.gz: 2b2cdbc15582f14f83d7ebd241fa005b9f50fe4ce280693662863b9db99332d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/midinous/proc_midi.rb
CHANGED
@@ -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
|
-
@
|
55
|
-
|
56
|
-
|
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
|
data/lib/midinous/style/ui.rb
CHANGED
@@ -290,7 +290,11 @@ class UI_Elements
|
|
290
290
|
end
|
291
291
|
|
292
292
|
def regen_status
|
293
|
-
|
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