Commit 06a5e7f
committed
Fix temperament widget playing incorrect notes for default temperaments
Use note names instead of raw frequencies when playing notes in the
temperament widget for default temperaments (non-12EDO). This ensures
the synth applies the correct temperament mapping via _getFrequency()
instead of bypassing it with raw frequency values.
The fix:
- Sets synth's inTemperament and changeInTemperament before playing
- Converts note arrays to string format (e.g., ["C", 4] -> "C4")
- Handles Unicode sharps/flats conversion to ASCII
- Maintains backward compatibility for edit modes and custom temperaments
Fixes #40331 parent 74b88f5 commit 06a5e7f
1 file changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1896 | 1896 | | |
1897 | 1897 | | |
1898 | 1898 | | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
1899 | 1903 | | |
1900 | | - | |
| 1904 | + | |
1901 | 1905 | | |
1902 | 1906 | | |
1903 | 1907 | | |
1904 | 1908 | | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
1905 | 1927 | | |
1906 | 1928 | | |
1907 | 1929 | | |
| |||
0 commit comments