Uploaded May 2020 | Updated December 2026, 3 hours ago
This is a solo guitar improvisation by Han-earl Park that Nick Didkovsky is decoding and tempo-mapping. It is a work in progress.
Han-earl Park’s project for creating new solo guitar pieces has been
made possible with funding from the Arts Council of Ireland.
busterandfriends.com
didkovsky.com
This is a solo guitar improvisation by Han-earl Park that Nick Didkovsky is decoding and tempo-mapping. It is a work in progress.
Han-earl Park’s project for creating new solo guitar pieces has been
made possible with funding from the Arts Council of Ireland.
busterandfriends.com
didkovsky.com




![Neural Net animation programmed in JForth
Nick Didkovsky
This neural net converts Polar coordinates to Cartesian coordinates and tries to draw circles and spokes during the training process.
Neural Net in JForth Pro v2.0
From Rietman/Frye Neural Networks That Learn
Algorithm, the Personal Programming Newsletter May/June 1990 [vol. 1.4]
NDs old programming docs follow (software currently unavailable):
You should have these five files in one directory:
Neural_Net_Load ( Forth load file)
Neural_Net.ffp ( Forth source code)
Save_Neural_Net ( Forth source code)
TrainedNet ( file containing weights of a highly trained net)
ReadMe (this file)
********************************* OVERVIEW *********************************
This neural net converts Polar coordinates to Cartesian coordinates.
Input is of form: radians radius
Output is of form: x y
Input range is -PI .. PI for both radius and radians
A neural net is developed in two stages. The training stage and the useful
stage. During the training, the net is repeatedly quizzed with a random
question. It offers an answer, and is corrected by a smart portion
of the program that knows the real answer. After doing this a few
thousand times, the net starts to catch on, and give better and better
answers. Once trained, this net can do a reasonable conversion from
polar to Cartesian coordinates. The user can see how well the net has
learned this process by running a plotting routine called Spider.Test
********************************** USAGE *******************************
From JForth CD yourself to the directory containing these files, then type:
INCLUDE Neural_Net_Load
Be sure youve executed the assigns on your JForth master disk.
The training stage for this network took about 14 hours. Reasonable
results were obtained after about 3 hours of training. You can train the
net yourself by typing:
init.neural.net ( just do this ONCE!)
5000 train.loops ( takes about 35 minutes)
spider.test
Repeat the train.loops and the spider.test steps over and over,
and each time you will see a better and better plot, as the neural net
acquires knowledge. See description of spider.test below.
IF YOU DONT WANT TO TRAIN THE NET YOURSELF,
you can load my trained Neural Nets weights into your net.
Type:
Init.Neural.Net
Load.Neural.Net TrainedNet
Spider.Test
Spider.Test draws concentric arcs and radii of a circle plotted by
converting polar coordinates to (x,y) Cartesian coordinates. It plots this
web twice, once by having the smart part of the program do the conversion,
and then by having the Neural Net do the conversion.
After only 5000 training loops, the nets attempts will barely approximate
the clean arcs. After about 30000 training loops, it will look much
better. Try 30000 train.loops and leave for four hours. Then try
spider.test. Do this a few times, overnight or whatever...
My TrainedNet file represents something like 90000 training trials.
Youll see the nets web come very close to the ideal one.
************************** IMPORTANT ROUTINES ***************************
Read the source! Important routines include:
SAVE.NEURAL.NET ( filename )
which lets you save the currently trained state of the network, and
LOAD.NEURAL.NET ( filename , guess what this does).
You might want to train the net for a few hours one day, save it, shut down,
load the net back the next day, train it some more, save it etc...
Also, there are some marginally fun testing routines, like:
GRAPH.TRAINING ( , graphs % error of training trials)
PRINT.ALL.TO.FILE ( filename , prints all arrays to a file)
VIEW.TRAINING ( loops , prints target values, error, etc for each trial)
An important flag is TRAINING-NET? ... which, when set to TRUE, will
cause the Neural Net to calculate its error and adjust itself every time
you ask it a question. Set it to FALSE once the net is trained.
Spider.test does this automatically, but you should know about it anyway.
Top level routine is:
ASK.NEURAL.NET ( radians radius x y)
NEURAL_LEARNING_RATE is an important constant, which I set to 0.05
A higher value like 0.1 will train the net faster, but with less accuracy.
A lower value will take a long long time to train, but perhaps it will
be much more accurate.
You can play with the HUNITS constant, which I set to 40. HUNITS is the
number of hidden neurons in the net, which form a layer between the input
neurons and the output neurons. You might want to try a smaller value,
and see how things go.
You should send for the Algorithm article which, though fraught with typos,
will explain lots of things Im skipping in this file.
oh, if you adapt this network to do something else, youll probably want to
keep your inputs in the -1.0 .. 1.0 range, as the network can blow up
pretty easily if numbers get too big. Experiment. Neural Net animation programmed in JForth](https://i.ytimg.com/vi/h38WaKlBR2c/mqdefault.jpg)





