Software Listing of Author : "Benoit Charles"
- Cacofonix
- License: Shareware
- Price:


Cacofonix is a library to create midi files. A complete documentation is provided in the archive. To preview a little more, this is an (advanced, don't panic) example: NoteInit COUPLET = Note( 'Marker', 'COUPLET' ); RYTHMIC = [ ... R:N8 G:N8 A:N8 C++C:N8 bar ... ~C++C:N2 R:N8 G:N8 A:N8 D++D:N8 bar ... ~D++D:N2 R:N8 D++D:N8 E++E:N8 F++F:N8 bar ... ~F++F:[N2 N8] F:N8 G:N8 C++C:N8 bar ... ~C++C:N2 ]; RIFF = [ V-0:N8 bar ~V-0:[N2 N4'] ]; CHOEUR = [ C*CM*RIFF D*CM*RIFF F*CM*RIFF C*CM*RIFF ]; CHOEUR2 = [ (-G+C+E)*RIFF (-Fs+-A+C+D)*RIFF (-A+C)*RIFF (-E+-G+C)*RIFF ]; CHOEUR3 = [ ~COUPLET R:N4' C*RIFF D*RIFF F*RIFF C*CM:N8 bar ... ~C:N8 G:N8 A:N8 +C:N4 R:N4' bar ]; LYRIC = [ ~COUPLET ... R:N8 C:N8 E:N8 G:N8 bar ... A:N8 A:N8 G:N4 E:N4 D:N8 C:N8 bar ... C:N8 D:N4 -A:N4 -G:N8 -A:N8 C:N8 bar ... ~C:N4 G:N4 E:N4 D:N8 C:N8 bar...
- Publisher: Benoit Charles
- Date Released: 11-05-2013
- Download Size: 481 KB
- Download
- Platform: Matlab, Scripts
- MagicListener
- License: Shareware
- Price:


MagicListener constructor creates a listener just like the addlistener function. The difference is the constructor accepts one more input, one object or a cell of objects, and the life cycle of the returned object will be linked also on these objects. Exemple: Without MagicListener: [Class1.m] classdef Class1 < handle events myEvent end end [Class2.m] classdef Class2 < handle methods function this = Class2( obj1 ) addlistener( obj1, 'myEvent', @(H,E) this.callback() ); end function callback( this ) disp( 'CALLBACK!' ); end end end >> obj1 = Class1(); >> obj2 = Class2( obj1 ); >> notify( obj1, 'myEvent' ); CALLBACK! >> delete( obj2 ); >> notify( obj1, 'myEvent' ); Warning: Error occurred while executing callback: Invalid or deleted object. With MagicListener: [Class1.m] classdef Class1 < handle events myEvent end end...
- Publisher: Benoit Charles
- Date Released: 25-05-2013
- Download Size: 10 KB
- Download
- Platform: PHP, Scripts