~ubuntu-branches/debian/stretch/bristol/stretch

« back to all changes in this revision

Viewing changes to brighton/brightonControllers.c

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-11-14 06:15:01 UTC
  • mfrom: (1.2.6) (6.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20111114061501-fralw11sxtl7n929
Tags: 0.60.9-1
* New upstream bugfix release.
* Depends on libjack-dev only.
* Refresh patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
3
 *  Diverse Bristol audio routines.
4
 
 *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2010
 
4
 *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2011
5
5
 *
6
6
 *
7
7
 *   This program is free software; you can redistribute it and/or modify
1320
1320
                         * a couple of ints and a float. Should we use controller and
1321
1321
                         * value?
1322
1322
                         */
1323
 
                        if (synth->win->template->callback != 0)
 
1323
                        if ((msg->channel == synth->midichannel)
 
1324
                                && (synth->win->template->callback != 0))
1324
1325
                synth->win->template->callback(synth->win,
1325
1326
                                        msg->command, msg->params.program.p_id, 0);
1326
1327
                }
1333
1334
         * the value should be translated first.
1334
1335
        bristolMidiToGM2(synth->win, msg);
1335
1336
         */
 
1337
//printf("PRE: %f\n", msg->params.controller.c_val);
1336
1338
        bristolMidiToGM2(synth->win->GM2values, synth->win->midimap,
1337
1339
                synth->win->valuemap, msg);
 
1340
//printf("POST: %f\n", msg->params.controller.c_val);
1338
1341
 
1339
1342
        /* 
1340
1343
         * This should search the synth list, here we just assume one synth per
1626
1629
                 */
1627
1630
                if (msg->GM2.c_id == 0)
1628
1631
                {
1629
 
                        if (synth->win->template->callback != 0)
 
1632
                        if ((msg->channel == synth->midichannel)
 
1633
                                && (synth->win->template->callback != 0))
1630
1634
                synth->win->template->callback(synth->win,
1631
1635
                                        MIDI_BANK_SELECT, msg->GM2.intvalue, 0);
1632
1636
                        return;