File tree Expand file tree Collapse file tree 1 file changed +30
-9
lines changed
code/modules/bayinstruments/real_instrumentssynthesized Expand file tree Collapse file tree 1 file changed +30
-9
lines changed Original file line number Diff line number Diff line change 43
43
44
44
/ datum / music_code/ proc / octave_code()
45
45
if (src . octave!= null )
46
- var /sym = (octave_condition== LESSER ? " <" :
47
- octave_condition== EQUAL ? " =" :
48
- octave_condition== GREATER_MUSIC ? " >" : null )
46
+ var /sym = " "
47
+ switch (octave_condition)
48
+ if (LESSER )
49
+ sym = " <"
50
+ if (EQUAL )
51
+ sym = " ="
52
+ if (GREATER_MUSIC )
53
+ sym = " >"
54
+ else
55
+ sym = null
49
56
return " O[ sym] [ octave] "
50
57
return " "
51
58
52
59
53
60
/ datum / music_code/ proc / line_num_code()
54
61
if (src . line_num)
55
- var /sym = (line_condition== LESSER ? " <" :
56
- line_condition== EQUAL ? " =" :
57
- line_condition== GREATER_MUSIC ? " >" : null )
62
+ var /sym = " "
63
+ switch (line_condition)
64
+ if (LESSER )
65
+ sym = " <"
66
+ if (EQUAL )
67
+ sym = " ="
68
+ if (GREATER_MUSIC )
69
+ sym = " >"
70
+ else
71
+ sym = null
58
72
return " L[ sym] [ line_num] "
59
73
return " "
60
74
61
75
62
76
/ datum / music_code/ proc / line_note_num_code()
63
77
if (src . line_note_num)
64
- var /sym = (line_note_condition== LESSER ? " <" :
65
- line_note_condition== EQUAL ? " =" :
66
- line_note_condition== GREATER_MUSIC ? " >" : null )
78
+ var /sym = " "
79
+ switch (line_note_condition)
80
+ if (LESSER )
81
+ sym = " <"
82
+ if (EQUAL )
83
+ sym = " ="
84
+ if (GREATER_MUSIC )
85
+ sym = " >"
86
+ else
87
+ sym = null
67
88
return " N[ sym] [ line_note_num] "
68
89
return " "
69
90
You can’t perform that action at this time.
0 commit comments