The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: gabor on May 11, 2005, 01:16:42 PM

Title: Sound generator
Post by: gabor on May 11, 2005, 01:16:42 PM
Hi everyone!

  I had an idea several years ago. It was a program that can be used to create a network of signal generating and processing modules. The results of this sort of net are synthetized sounds, or even complete tunes.
  In the recent years this idea has not remained unique anymore, but its programming effort is still challanging and exciting. Ok, this is what I think...

I am looking for members who would join this work with ideas, algo design and coding.

I´ve also created a little code in real mode and for DOS4GW. The program parses a script wich holds the description of the network.
It is in the zipped file. It contains the executable and 2 example scripts.

I'm waiting your questions! :bg

Greets, gábor


[attachment deleted by admin]
Title: Re: Sound generator
Post by: AeroASM on May 11, 2005, 05:58:17 PM
I would be happy to help with the basic modules - I have experience in coding algorithms and I also know quite a bit about software synthesisers.
Title: Re: Sound generator
Post by: gabor on May 12, 2005, 01:12:04 PM
Hi!

I am very glad that there is interest for this project. I made a list of the modules that exist in the little program a posted before. It is available on my homepage: http://members.chello.hu/nemeth.gabor1/hgh/index.html

AeroASM!

If you really feel like creating sounds, contact me, either here or per email or per PM. I'd recommend first read through that little list of mine, to get a view on those stuff.
For now I can tell that the hard part was not to create those modules, but to organize them and to create an appropriate framework to dynamically create, destroy and connect them...

Maybe I'll post my code, but it is really old, and does not compile anymore, after I've tried to modify several parts. Now it would be easier and cleaner to start over the coding.

Greets, gábor

Title: Re: Sound generator
Post by: Farabi on May 14, 2005, 04:17:59 AM
Error tested on WinXP with 2.8 Ghz, "Attempt to access invalid address".
Title: Re: Sound generator
Post by: gabor on May 14, 2005, 07:04:51 AM
Hi Farabi!

Thanks for reporting! Could you please tell me about the circumstances of the error: which script did you use? This proggy is discontinued, as you could read I've started to rewrite it under Win32.

Greets, gábor

Title: Re: Sound generator
Post by: Farabi on May 21, 2005, 11:37:30 AM
Hai sorry for replying it too long. I click it and it not working, it must be error at memory accessing.
Title: Re: Sound generator
Post by: gabor on May 30, 2005, 01:14:59 PM
Hi folks!

This is just to inform you, that this project is still alive and in the works...
I have reached a level and now I would like to give my results to you to test it.
I work under Win2k and WinXP on Intel P3 and AMD Athlon XP. Well, I think it should run on any platform...
If interested I can give the source too.
(My recent experiences show me that it is not of big importance to give source code because there are so few replies. :'()

Brief description:

The program wants to be Windows base (so not a consol app).
- creates a main window
- the main window creates a log pop-up dialog
- the main proc creates a network instance
- the network instance creates 3 input instances
- logs a small statistics about the network

Please tell me of your opinion.

My next steps will be
- create more modules (more interesting ones, like oscillators)
- write the procedures to connect/disconnect them
- procedure that runs the generation

I also have a question: To load/impot saved data should I create a text input parser first (the saved data is text, say XML) or should I create a GUI and skip the text processing? How difficult can it be to create a mouse and click driven surface for inserting/deleting connecting modules?

Greets, Gábor


[attachment deleted by admin]
Title: Re: Sound generator
Post by: gabor on June 06, 2005, 02:28:02 PM
Hi!

I have here another version to test. Please run it on your equipment to get the bugs known. Thanks!
This simply creates a network from stored data (is nailed in the data seg), and then destroyes it. The network consists of 3 constants, 1 potmeter and 2 oscillators. This is just a framework, no signal is generated or transformed yet.

If someone is interested in the source, please tell me!

Greets, Gábor

[attachment deleted by admin]
Title: Re: Sound generator
Post by: Faiseur on June 06, 2005, 05:07:31 PM
Hi Gabor,

that seems in order on my Windows XP (SP1).

(http://uk.trojanfrance.com/2.jpg)
Title: Re: Sound generator
Post by: pbrennick on June 06, 2005, 05:44:17 PM
Hi Gabor,

Results on my machine show it working well...

Quote
SOUND GENERATOR NETWORK v2.0
created by Németh Gábor 2005

Network module created.
Input created.
Input created.
Input created.
Potmeter created.
Oscillator created.
Oscillator created.

Network module info
start address: 00147F08h
006 module(s) created.

001.constant module info
start address: 00148F48h
value: 1.00000000

002.constant module info
start address: 00148F74h
value: 55.7000000

003.constant module info
start address: 00148FA0h
value: 440.751000

004.potmeter module info
start address: 00148FCCh
min: -0.5000000
max: 0.50000000
stp: 0.05000000

005.saw osc module info
start address: 00149010h
rst on module001.
amp on module001.
fre on module002.

006.saw osc module info
start address: 00149060h
rst not connected.
amp on module001.
fre on module003.

Network module destroyed.

I would like to say that on several occasions you have mentioned that if you saw more interest, you would post the source.  Whether you post the source or not is of no consequence to me as this is something I know nothing about, but I want you to realize that you are going about this bass-ackwards.  I feel if you want to generate interest, you need to, first, post the source.  Remember, this is a programming forum, not a testing forum.  People will test your code as they do for others, too; but to generate interest...this is a programming forum.

hth:
Paul
Title: Re: Sound generator
Post by: AeroASM on June 06, 2005, 06:26:22 PM
pbrennick: he doesn't mean that if he sees interest he will post the source, he means that if people are interested they should PM him and he will give them the source, as I did.

gabor: That looks really good! what is the rst on the oscillator? and should it not show something like "Output not connected"?
Title: Re: Sound generator
Post by: pbrennick on June 06, 2005, 08:40:42 PM
Aero,
Irregardless, my point is still valid.  How are you doing BTW, haven't seen you around for a while?

Paul
Title: Re: Sound generator
Post by: AeroASM on June 06, 2005, 09:00:35 PM
Quote from: pbrennick on June 06, 2005, 08:40:42 PM
Irregardless

Is that a word? Or is it like "misunderestimate"? Or am I just being stupid?

Quote from: pbrennick on June 06, 2005, 08:40:42 PM
haven't seen you around for a while?

If by a while you mean 5 days, I was on holiday (and incidentally got no sleep at a sleepover and got in trouble for sleeping in over breakfast the next morning at school)

If by a while you mean a couple of weeks, I have not seen many appealing posts recently, but I still check the forum once every few hours.
Title: Re: Sound generator
Post by: pbrennick on June 07, 2005, 02:01:34 PM
Hi Aero,
No, you are not stupid, you just speak a different English (I speak a dialect).  Anyway, yes, in my dialect, it is a word.  In Australia, they say whinging which in my dialect is not a correct spelling of whining.  English is fastinating...

Sorry you got into trouble and I am surprised you get away with being online so much.  In the college where I used to teach we monitored this behavior of our students (not me, the network guys), I was just the CNE and the coursework required they have someone with my credentials.  Your network guys are not too smart.  We also monitored phone logs. It was a seminary is your college a seminary?

Paul

Title: Re: Sound generator
Post by: AeroASM on June 07, 2005, 02:50:06 PM
In England both whinging and whining are acceptable.

Quote from: pbrennick on June 07, 2005, 02:01:34 PM
Sorry you got into trouble and I am surprised you get away with being online so much. In the college where I used to teach we monitored this behavior of our students (not me, the network guys), I was just the CNE and the coursework required they have someone with my credentials. Your network guys are not too smart. We also monitored phone logs. It was a seminary is your college a seminary?

"Get away with"? Is it a crime?
What is the CNE and what has coursework got to do with anything?
In what way are our network guys not smart?
What is a seminary?
Title: Here is the source
Post by: gabor on June 07, 2005, 03:02:01 PM
Hi everyone!

First of all Faiseur,pbrennick thank for your posts about your tests!

I've considered pbrennick's advice about bringing interest into this topic by posting source. Well I must say he is right, the source can call in some enterprising soul. This is indeed a programming forum.
Ok, the attached zip contains all inc and asm files, and a makeit.bat. I put a small readme text into the zip, it will help a bit...

I hope after this source-opening there will be some who would like to create their own modules, that must fit some simple rules. Since this topic is for this project, later I will explain my concept and would like to have a discussion about it... Until then please look on my code and post your opinions and questions!

AeroAsm!
The basic oscillator has 3 inputs: rst-reset, amp-amplitude, fre-frequency. In this test network on the reset input of the 2nd oscillator's (6th module) was no module connected.

Greets, Gábor



[attachment deleted by admin]
Title: Sound generator - XML import/export
Post by: gabor on August 25, 2005, 08:10:57 AM
Hi folks!

I just wanted to tell that I am ready with a usable version of my XML parser, available here:
http://www.masmforum.com/simple/index.php?topic=2173.0

Now I will create a procedure that converts a network described in XML into a binary representation. This binary representation was already used in the SGN I posted earlier. There it was defined directly in the testnetwork.asm file.

I am still working on the project!
09.26: I finished the code to handle multi-level (hierarchical) networks...
Now I'll finally create the method to build up a network from XML data.



Greets, Gábor

Title: Re: Sound generator
Post by: gabor on June 04, 2007, 12:45:13 PM
Hi!

It's been a long time I wrote something about my project...
I got a working version of the skeleton. It eats binary data only so far, some interface would be nice... I want to create a text based input and a GUI of course.
The version is not bugfree.
In the attachment there is a small test application. All the sound synth is in the ssn.lib.
Please, don't look at the given source's readibility or quality in the ssn subdir, as it reflects a premature state...

Please test the sample app and give feedback to get help finding bugs!

I also attach another app I created with full source code. About its features read the .txt file!
It doesn't use this synth system, but it is very near to it. Actually the only big difference is that in this synth app the modules are statically defined, the above skeleton makes it possble to create and destroy modules fully dynamically.
I will replace the inner synth part of the synth app to this newer dynamic system.
Wait for more  :8)

Both projects use some external libs from Ultrano, lotsof thanks to him for them!

Greets, Gábor

[attachment deleted by admin]