Mercurial > hg > silvet
comparison src/Instruments.cpp @ 298:ebe5e0942bb8 livemode
More toward a possible live mode
author | Chris Cannam |
---|---|
date | Fri, 28 Nov 2014 10:18:22 +0000 |
parents | 00d76494a722 |
children | bcfdaa708992 |
comparison
equal
deleted
inserted
replaced
297:d6ab1b4918bd | 298:ebe5e0942bb8 |
---|---|
17 | 17 |
18 #include "data/include/templates.h" | 18 #include "data/include/templates.h" |
19 | 19 |
20 #include <iostream> | 20 #include <iostream> |
21 | 21 |
22 const int InstrumentPack::templateNoteCount = SILVET_TEMPLATE_NOTE_COUNT; | |
23 const int InstrumentPack::templateHeight = SILVET_TEMPLATE_HEIGHT; | |
24 const int InstrumentPack::templateMaxShift = SILVET_TEMPLATE_MAX_SHIFT; | |
25 const int InstrumentPack::templateSize = SILVET_TEMPLATE_SIZE; | |
26 | |
27 using std::string; | 22 using std::string; |
28 using std::vector; | 23 using std::vector; |
29 using std::cerr; | 24 using std::cerr; |
30 using std::endl; | 25 using std::endl; |
26 | |
27 InstrumentPack::InstrumentPack(int lowest, int highest, | |
28 std::string n, std::vector<Templates> tt) : | |
29 templateNoteCount(SILVET_TEMPLATE_NOTE_COUNT), | |
30 templateHeight(SILVET_TEMPLATE_HEIGHT), | |
31 templateMaxShift(SILVET_TEMPLATE_MAX_SHIFT), | |
32 templateSize(SILVET_TEMPLATE_SIZE), | |
33 lowestNote(lowest), | |
34 highestNote(highest), | |
35 maxPolyphony(5), | |
36 pitchSparsity(1.1), | |
37 sourceSparsity(1.2), | |
38 levelThreshold(5), | |
39 name(n), | |
40 templates(tt) | |
41 { | |
42 } | |
31 | 43 |
32 const char *simpleInstruments[] = { | 44 const char *simpleInstruments[] = { |
33 // Each instrument has two consecutive slots, one for the pack | 45 // Each instrument has two consecutive slots, one for the pack |
34 // name and one for the template to look up | 46 // name and one for the template to look up |
35 "Guitar", "guitar", | 47 "Guitar", "guitar", |