It is only a snippet of code, which itself don't work. So I can not creating a working example with it, because I don't want to read the complete tutorial.
But I can port your snippet to Jabaco:
At first loading all jar-files in the Beads.zip to your classpath.
Then go to the right top of the IDE to the "Project"-area and click there on "Add File..". Adding a "Class Module" there.
Go to the "Properties"-area of the IDE. You see now the properties of the new class file. Let the name as "Class1", but change the superclass to "net/beadsproject/beads/ugens/Function". You can do it by browing to it: Click on the "..." right beside of the text-filed of "(SuperClass)". Choosing the beads.jar-file and browse to the directory "net" -> "beadsproject" -> "beads" -> "ugens" and there choosing the file "Function.class".
Now go to the text-filed of the IDE and write the following code to Class1:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
|
Public Sub Class1(a As net#beadsproject#beads#core#UGen)
End Sub
Public Function calculate() As Single
Dim x As Single = 7
calculate = (x * 50.0) + 200.0
End Function
|
Changing now to the Module1-file and write there:
|
Jabaco Source
|
1
2
3
|
Public Sub main(ByJava args() As String)
Dim frequencyModulation As New Class1(modulator)
End Sub
|
Thats the port.
Jabaco don't find "modulator"? Right. But that is't defined in the snipped, too.
But I hope. that this port to Jabaco helps even though.
Greatings
theuserbl