Search Unity

Midi Notes on Particle Collision

Discussion in 'Scripting' started by Goldberg7777, Jul 6, 2019.

  1. Goldberg7777

    Goldberg7777

    Joined:
    Jan 15, 2019
    Posts:
    1
    Hey there, I'm pretty new to c# and unity and can't figure out what the error is.

    Im using Midi Jack to send out midi notes on collision to ableton. If i do it with a normal object with a rigidbody it works fine but not with a particlesystem.
    Im using OnParticleCollision(): and made a debug log which shows that its working but it's not sending it out to the Midi Jack Patch.

    Help please ;)

    any other ways of doing are appreciated

    thanks
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    Keep adding more Debug.Log() calls deeper in... do you have a debug call next to the midi port call?

    Also, is it also possible that too many particles are hitting and it is confusing your MIDI driver port, maybe choking up its buffer?