Skip to content

Commit b8cae65

Browse files
pgervaisfundamental
authored andcommitted
Added some comments + minor formatting fixes.
1 parent bbdba6e commit b8cae65

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

src/mruby-zest/example/LfoVis.qml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Graphical visualization of oscillator parameters.
2+
// This widget handles a variety of plots, depending on the value of
3+
// lfo_vis.type.
14
Widget {
25
id: lfo_vis
36

@@ -150,8 +153,8 @@ Widget {
150153
Proc.new {|phase| (0.05 ** phase) * 2.0 - 1.0}
151154
when :exp2
152155
Proc.new {|phase| (0.001 ** phase) * 2.0 - 1.0}
153-
when :random
154-
Proc.new {|phase| 2*rand - 1 } #TODO: proper RAN LFO display
156+
when :random
157+
Proc.new {|phase| 2*rand - 1 } #TODO: proper RAN LFO display
155158
else
156159
Proc.new {|x| Math.sin(2*3.14*x) }
157160
end

src/mruby-zest/example/ZynAddGlobal.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Widget {
1212
}
1313

1414
Swappable {
15+
// Graphical visualization of oscillator parameters.
1516
id: row1
1617

1718
function setDataVis(type, tab) {

src/mruby-zest/example/ZynPadGlobal.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Widget {
1010
}
1111

1212
Swappable {
13+
// Graphical visualization of oscillator parameters.
1314
id: row1
1415
content: Qml::LfoVis
1516

@@ -189,4 +190,4 @@ Widget {
189190
end
190191
set_view()
191192
}
192-
}
193+
}

src/mruby-zest/example/ZynSubGlobal.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Widget {
1010
}
1111

1212
Swappable {
13+
// Graphical visualization of oscillator parameters.
1314
id: row1
1415
content: Qml::LfoVis
1516

@@ -26,7 +27,6 @@ Widget {
2627
Draw::Layout::hpack(l, selfBox, children)
2728
}
2829

29-
3030
Swappable { id: gen }
3131
Swappable { id: env }
3232
}

src/mruby-zest/qml/Swappable.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Widget {
3434
end
3535
}
3636

37+
// For debugging purposes.
3738
function dump_plist()
3839
{
3940
plist = swappable.db.instance_eval{@plist}

src/mruby-zest/qml/Widget.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ Object {
8383
end
8484
}
8585

86+
// Returns the top-level object in the hierarchy. In the case of
87+
// zest, it is a ZRunner instance.
8688
function root() {
8789
if(parent.respond_to?(:root))
8890
parent.root

0 commit comments

Comments
 (0)