< Back to IRCAM Forum

MIDI setup problems in OM 6.9

Hi. Thanks for the bug report! Turns out this was a buggy method for prepare-to-play.

I’ve updated the sources, but until the next release, here’s an updated method to put into a file in your patches folder:

  
(defmethod PrepareToPlay ((player (eql :midi)) (self note) at &key  approx port interval voice)  
  (when (not (memq (tie self) '(continue end)))  
    (setf port (or port (port self)))  
    (setf approx (or approx 2))  
    (let ((chan (+ (chan self) (micro-channel (approx-m (midic self) approx) approx)))  
          (pitch (truncate (approx-scale (get-current-scale approx) (midic self)) 100))  
          (vel (vel self))  
          (dur (- (real-dur self) 2))  
          (date at)  
          (voice (or voice 0)))  
      (let ((newinterval (and interval (interval-intersec interval (list at (+ at (- (real-dur self) 1)))))))  
        (when (or (null interval) newinterval)  
          (note-events port chan pitch vel  
		       (if interval  
			   (- (second newinterval) (first newinterval) 1)  
			   dur)  
		       (if interval  
			   (- (first newinterval)  (first interval))  
			   date)  
		       voice))))))
"I’m also trying to avoid the Midi percussion track, but it seems difficult on channel 7 and 8 with eight tones. Is there a work-around for this? I’m using Portmidi and SimpleSynth. With Microplayer you could use 16 different output sounds, with any microtonal division, and without this problem."

I don’t see this as a problem, the default automatic mapping of microtone-space to successive channels makes much sense. Handling ch 10 as a special case isn’t justified in already specialised setups for microtonal playback.

A workaround is easy, just map your midicent values explicitly to any set you prefer.

Thank you for the answers! I’m still having one issue with portmidi; it doesn’t automatically work even though it is selected in preferences. When I launch Open Music, playback is initially silent. I go to MIDI preferences and select portmidi, which is already selected, and click ok. Now the sound is working. The same thing happens opening and closing the midi synth, you have to select portmidi and click ok again. Is there a way to add automatic update of MIDI settings at playback or launching Open Music?

And I wonder, does portmidi have limitations in number of output channels? 16 instruments playing 1/8-tones would require 128 MIDI channels. SimpleSynth doesn’t have more than 16 channels, I should find another software synth.

Ruben

Hello colleagues,
about micro tone question:
I built up a chord-seq with micro tone list 6000 6050 6100 6150 etc. get a quarter tone scale result, but it doesn’t play in micro tone rather than: 1/4 tone the same as nature, 3/4 the same as a semi tone sharp, what’s wrong? I use Midisorpt 2X2 linked to Yamaha TG 100, may be the external instrument doesn’t support micro tone.
what is the simple way to replace, bm-microton? and how?

thanks

Shing-kwei

Mac Pro 10.10.2

hello Shing-kwei

The MIDI standard in general doesn’t support micro-intervals: The pitches are coded as intergers, and 1 = 1/2 tone.

There exist tricks however to overpass this limitation such as playing all 1/4 tones on a different MIDI channel detuned using pitchbend controllers

In principle there is an option to set this in OM /MIDI preferences (“Auto microtone bend”) but I think it does not work well in OM 6.9 (hopefully better in 6.10)

You can also do it yourself as shown in OM Tutorials #10

Hi Jean,
thanks for your reply, I don’t know without Midi interface (MIdisport), external instrument, how can OM produce sound? (before I used PC Windows seems easier and automatically)
Hopeful OM 6.10 can have a better environment.

thanks again

shing-kwei

You can use any kind of software synthesizer
for instance SimpleSynth : http://notahat.com/simplesynth/

Hi everyone,

I’ve been trying to follow the instruction on the link that Jean left:

http://repmus.ircam.fr/openmusic/midi

When I mess around with the sliders on mscontrol i can get some sounds, but on msdrivers the only thing that comes up is Microsoft GS Wavetable Synth. I think I have connected port 0 to this synth but still no sound comes out when i try to click play on any score classes like a simple chord. I’m a bit worried that Microsoft GS wavetable is the only thing there, has OM 6.9 not installed properly? Do I need to download it again?

Microsoft GS wavetable is the default MIDI synth on Windows.
It depends on if you are using MIDIshare or portmidi as default MIDI system.
You probablmy don’t need to reinstall OM, but check well all the MIDI chain :

  • What is the MIDI system in OM
  • Is this system working and configured correctly
  • Are your OM score objects sending to the right port/player.

If you wait a few more days, OM 6.10 MIDI system should be much easier to configure…

Hi Jean,

Currently the MIDI system is MIDIshare. I’m not entirely sure whether it is configured correctly or how even to configure it correctly, but when I click on GS Wavetable then two green squares appear in the top left corner. I have no idea how to change this however. I must admit that I’m a bit of a tech noob…

As for the third point, I’m not sure how to check whether score objects are sending to he right port let alone actually send them to the right player. When is OM 6.10 coming out?

Also when I do try and change the system to cl midi and portmidi or do either, OM comes up with an error that says:

“An error of type simple-type-error occured: Cannot take Car of 1”

Did you figure out the problem with midi sending an error on win 8 with internal synthesizer ?
I have an error 1 when trying to perform a chordseq and the discussion stopped with nio answer.
Let me know.

Are you on OM 6.9 or 6.10 ?

I am using the last version 6.10 on a windows 8.
Thank’s for replying.

What is the error you get ?
Can you send some details ? A screen shot ?

thanks

Hi Jean
maybe you can help me ther. My question is very simple.
I’m in mac os el capitan, and i have 6.1 version (OM).
a) i launched the OM aplications whitout problems, ak the patches works.
b) I havent sound at all
c) i configured the midi like the forum says

Do i have to download any other app to get the sound works ?

thanks a lot

ps : in the listener i have no errors.

Bonjour
j’ai un probleme similaire, mais encore plus basique.
Je n’arrive pas a obtenir du son dans aucun objet de OM.
J’ai suivis tous les pas concernant le setup midi
et OM fonctionne correctement.
No error message in Listener!
Quelqu’un peut me donner des pistes ?
OM version 6.1
Os version : el capitan.
Merci beaucoup
Ad Kaplan

Bonjour Jean
j’ai suivi toutes les etapes pour le setup midi
cependant je n’arrive pas a emetre un son sur OM.
Version 6.1 et El capitan en OS.
Es-ce que j’ai besoin d’installer une autre application pour faire sonner OM ?
Cordialement
AdKaplan

@ADKAPLAN Il faut vérifier ce qui sort d’OM en termes de code MIDI.
Pour ça il faut vous procurer ou fabriquer un moniteur MIDI (avec Max/MSP c’est très facile).
Il faut aussi qu’il y ait un synthétiseur MIDI qui reçoive ces codes MIDI soit expandeur/synthé externe matériel, soit un synthé virtuel réglés sur le bon canal. Mais je pense que vous savez ça.

Bonne journée.

JMD

Bonjour Jean Michel, je vous remercie de votre reponse ! ( excusez moi je suis sur un clavier anglophone et pas moyen d’ecrire des accents)
en effet je connais cette problematique. Je viens de telecharger la version 6.8 pour voir si ca change.
Je vous tiens au courant.
Cordialement
Ad.K