-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a problem where mappings didn't span tuning center
If a partial mapping existed and the mapping didnt span the tuning center (so like you mapped 69-81 with a tuning center of 60) we were off by an octave. This fix pushes the mapping to span the tuning center. Closes #72 Addresses surge-synthesizer/surge#7822
- Loading branch information
Showing
5 changed files
with
144 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
! foo.kbm | ||
! | ||
! Size of map: | ||
12 | ||
! First MIDI note number to retune: | ||
0 | ||
! Last MIDI note number to retune: | ||
127 | ||
! Middle note where the first entry in the mapping is mapped to: | ||
57 | ||
! Reference note for which frequency is given: | ||
60 | ||
! Frequency to tune the above note to (floating point e.g. 440.0): | ||
400 | ||
! Scale degree to consider as formal octave: | ||
31 | ||
! Mapping. | ||
0 | ||
3 | ||
5 | ||
8 | ||
10 | ||
13 | ||
16 | ||
18 | ||
21 | ||
23 | ||
26 | ||
28 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
! foo.kbm | ||
! | ||
! Size of map: | ||
12 | ||
! First MIDI note number to retune: | ||
0 | ||
! Last MIDI note number to retune: | ||
127 | ||
! Middle note where the first entry in the mapping is mapped to: | ||
69 | ||
! Reference note for which frequency is given: | ||
60 | ||
! Frequency to tune the above note to (floating point e.g. 440.0): | ||
400 | ||
! Scale degree to consider as formal octave: | ||
31 | ||
! Mapping. | ||
0 | ||
3 | ||
5 | ||
8 | ||
10 | ||
13 | ||
16 | ||
18 | ||
21 | ||
23 | ||
26 | ||
28 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
! foo.scl | ||
! | ||
|
||
31 | ||
! | ||
38.70968 | ||
77.41935 | ||
116.12903 | ||
154.83871 | ||
193.54839 | ||
232.25806 | ||
270.96774 | ||
309.67742 | ||
348.38710 | ||
387.09677 | ||
425.80645 | ||
464.51613 | ||
503.22581 | ||
541.93548 | ||
580.64516 | ||
619.35484 | ||
658.06452 | ||
696.77419 | ||
735.48387 | ||
774.19355 | ||
812.90323 | ||
851.61290 | ||
890.32258 | ||
929.03226 | ||
967.74194 | ||
1006.45161 | ||
1045.16129 | ||
1083.87097 | ||
1122.58065 | ||
1161.29032 | ||
2/1 |