Group Admins

  • Profile picture of Karim
  • Profile picture of Jean

OpenMusic

Public Group active 6 hours, 21 minutes ago

User group for OpenMusic and computer-aided composition. Visit the Forum for discussions.

VOICE – is there an input for midi-channel selection?

Author 5 Subscribed Users |
Profile photo of voodoopou
voodoopou

Dear list,
I have a similar question as my previous (chord-seq – is there an input for port selection?): I’m trying to change the midi-channel of a VOICE in order to send the midi information to the right instrument through IAC. I know I can do it entering VOICE, selecting all notes and changing to the appropriate channel, but this is quite time consuming and it doesn’t let much space for more automations.
Is there a way to control the midi channel from the outside? Similar question for the port
Thanx in advance!

August 18, 2015 at 01:15 #14500
Profile photo of voodoopou
voodoopou

So far I found a workaround with an abstraction where it converts VOICE to CHORD-SEQ, there is the option of changing the channel externally, then converts back to VOICE and now VOICE remembers the channel selection (see attached screenshot). However, the solution makes its own temporary quantifications. They are not wrong but not so musical.

Attachments:
  1. Capture-d’écran-2015-08-19-à-22.58.19

    Capture-d’écran-2015-08-19-à-22.58.19.png

August 19, 2015 at 21:03 #14525
Profile photo of voodoopou
voodoopou

Any better suggestion please?

  • This reply was modified 3 years, 3 months ago by Profile photo of voodoopou voodoopou.
August 19, 2015 at 21:04 #14528
Profile photo of Jean
Jean

I guess the best option is to get the chords from the voices (3rd output), process them in a loop or a mapcar setting the adequate channels,
then input them back into a voice with the original tree
Jean

August 21, 2015 at 21:46 #14536
Profile photo of voodoopou
voodoopou

Thank you Jean for your feedback! My previous workaround was not successful in several cases, because of serious problems of quantification.
I will try to apply your tip and get you posted.
Thanx again!

August 22, 2015 at 12:08 #14539
Profile photo of voodoopou
voodoopou

P.S. I received your answer just yesterday late evening in my email, whereas you have replied 1 minute after my post…

August 22, 2015 at 12:11 #14540
Profile photo of Karim
Karim

Hi Visatok,

Form my own collection of utilities. Just drop the lisp file in the patches folder in you OpenMusic folder. YOu have 2 functions :

– changechan works on pol and voice (cf documentation , type ‘d’)

– set-obj-port no documentation just put the object in first input, and type your port in second input. Hope this helps.

August 22, 2015 at 13:51 #14541
Profile photo of Karim
Karim

Something is definitively wrong with our server sorry
here is the attachment again

K

August 22, 2015 at 13:53 #14544
Jérôme
Jérôme

Hi Karim and all,

I’ve tried this patch but I have a bug (OM 6.9, OSX 10.10.5) I obtain “window-1″ at launch and when I want to see the workspace I obtain “window-2″.

It seems really weird !

…………………………………………………………………………………… jerome

August 22, 2015 at 14:32 #14547
Profile photo of Karim
Karim

Thx Jerome,

My bad !!!!!

try this again !

August 22, 2015 at 15:00 #14552
Jérôme
Jérôme

now it’s ok and everything works !

this object is just AMAZING !!!!!

Thank you very much K

August 22, 2015 at 15:07 #14555
Profile photo of voodoopou
voodoopou

Dear Karim,

One more time you prove to be our deus ex machina!
Yet, I still haven’t managed to make it work.
I’m not sure about the connectivity.
Sorry about my dumm question, but could you provide an example patch for a VOICE and a POLY?

about set-obj-port, you have already provided me with this solution to a previous question.

Thanks again!
Vitasok

  • This reply was modified 3 years, 2 months ago by Profile photo of voodoopou voodoopou.
August 22, 2015 at 18:02 #14556
Profile photo of voodoopou
voodoopou

UPDATE:
I manage to make work the changechan.lisp for VOICE.
However, it didn’t work for POLY.
I get the following error message (see attached pics)

Thanx for helping out!

Attachments:
  1. Capture-d’écran-2015-08-22-à-20.37.05

    Capture-d’écran-2015-08-22-à-20.37.05.png

  2. Capture-d’écran-2015-08-22-à-20.37.11

    Capture-d’écran-2015-08-22-à-20.37.11.png

August 22, 2015 at 18:40 #14558
Profile photo of Karim
Karim

Vitasok,

Sorry Again my bad….! (it must be the heat… )
PLease change the patch to this ne, i forgot to include a function…
And you have also an example patch…
Please don’t hesitate for remarks…

Best
K

August 22, 2015 at 18:45 #14563
Profile photo of Karim
Karim

Vitasok,

Sorry Again my bad….! (it must be the heat… )
PLease change the patch to this ne, i forgot to include a function…
And you have also an example patch…
Please don’t hesitate for remarks…

Best
K

August 22, 2015 at 18:45 #14566
Profile photo of voodoopou
voodoopou

Dear Karim,

Everything works perfectly and I’m really thankful for that.
Your example patch is more that clear to understand

Have a good evening!
Vitasok

August 22, 2015 at 19:55 #14569
Profile photo of Phivos
soklamon

Back to this topic

It seems like the newest version of OM not to understand the imported externals provided by Karim. As a result, the objects are dead… Any ideas?

August 9, 2018 at 18:14 #27416
Profile photo of Karim
Karim

Dear Soklamon,

It is working. You should just load the ‘changechan.lisp’ file BEFORE using the patch. If not, you will indeed have dead objects.

How to load the change.lisp file :

is to put it in your patches folder in om … OOOPS, this folder seems to be missing in the 613 mac version due to OS complications.
As a linux user i don’t have this problem. For MAC users you should load :

-Right-click on the OM 6.13 icon (in your Applications folder)
– go to Contents
-then in the init directory.
-there you should copy the changechan.lisp

Now close all and fire up OM.
Import the changechan-example.omp patch into your workspace. This should do it..

Best
K

August 9, 2018 at 19:02 #27417

You must be logged in to reply to this topic.

Log in now