Jump to content

MIDI Port number/name


opmo

Recommended Posts

To find out the midi ports setup of your system, please evaluate the (midi-destinations) function:

(midi-destinations)
=> ((0 . "Bus 1") (1 . "Bus 2") (2 . "Bus 3") (3 . "Bus 4")
    (4 . "Bus 5") (5 . "Bus 6") (6 . "Bus 7") (7 . "Bus 8")
    (8 . "Bus 9") (9 . "Bus 10") (10 . "Bus 11") (11 . "Bus 12")
    (12 . "Bus 13") (13 . "Bus 14") (14 . "Bus 15") (15 . "Bus 16")
    (16 . "Session 1") (17 . "Keyboard") (18 . "MIDI OUT") (19 . "UM-ONE"))

 

There are two possible ways to assign a port. One is with the port number and the other is with the port name (a string).

  (instrument
   :omn omn-form
   :port 0
   :channel 1
   :sound 'reaktor
   :program 1)

 

now with a string:

  (instrument
   :omn omn-form
   :port "Bus 1"
   :channel 1
   :sound 'reaktor
   :program 1
Link to comment
Share on other sites

  • 5 years later...

Hello, I'm having an issue getting MIDI over to a DAW and since this thread mentions the settings explicitly I thought I would add onto this.
I'm not able to record MIDI using Logic Pro or Ableton when Opus Modus is the source. I'm able to record MIDI from other software but not OpusModus.
So I'm getting

((0 . "Bus 1")) 

When I evaluate 

(midi-destinations)

Which is aligned with the above definition by the admin.
However, I"m not sure if this is the IAC Driver which I have sending and receiving port 1.

 

Is there a best practicce for getting this up and running? I haven't tried sending MIDI since I upgraded to OM 3.

Another solution would be for me to save a MIDI file from OM. But I don't see how to save the last score as MIDI in OM3.

 

Sorry if I'm missing something obvious here. Thanks.

 

Tom

Link to comment
Share on other sites

Another option - as a companion to (midi-to-omn) could we have (omn-to-midi "pathto/file.mid") or something similar?

Nevermind! I just tested the compile-score with adding a MIDI file and

 

(compile-score 'piano :file "/Users/ttolleson/opusmodus/Singles/WaveProcessFabric/MIDI/piano.mid")

(compile-score 'piano :file "/Users/ttolleson/opusmodus/Singles/WaveProcessFabric/MIDI/piano.mid")

 

Satisfies my need completely. Thanks!

 

Tom

Link to comment
Share on other sites

Besides the option of compile-score you can save from the midi-player

 

Tools-> last-score->midi player (or anything to  the midi player).

Then in the menu (left upper-corner ) of the midi player -> save as -> give the file a name and destination. Import in DAW.

 

Regarding ((0 . "Bus 1")) :

In the score you write :port 0 when you want to send to your IAC-driver Bus 1.
  (inst1 
   :omn omn1
   :port 0
   :channel 1
   )

In logic etc set the track midi-input to all or BUS 1.

Make sure that in the MIDI-settings of the DAW the IAC-driver bus is active.

 

In the Audio-midi-setup.app menu -> window (in German Fenster) -> MIDI-studio -> IAC-drivers you  see the names of the  IAC-driver and can create new ones. 

(midi-destinations) is listing them counting the opusmodus port starting from 0. That is why ((0 . "Bus 1"))

Link to comment
Share on other sites

Hi,

normally, if you name your IAC-Port-1 Bus 1, you can send midi to this port from OM using :port "Bus 1" inside  the score.

Generally it is better to use named port because actually Bus 1 could be :port 0 but if you plug some other midi devices to your computer, this order could change, that's the reason why it is better to use named ports.

Best !

 

Stéphane

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy