20 June 2015, 10:16 | #41 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 763
|
Here´s the source code.
It´s not very clean but well, It´s short enough. For sure It can be better cos I think I must free buffers if something is wrong but I´m a fucking noob coder! I´ll check that and reorder the code after lunch! Last edited by tolkien; 20 June 2015 at 10:37. |
20 June 2015, 10:33 | #42 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Code:
outbuffer[i] = inbuffer[i+6]; but this is really nice. thanks again |
20 June 2015, 10:36 | #43 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 763
|
That was my first idea but I was lazy I go for the simple one! More bytes but this is not demoscene! hehehehe
A bit of source cleanup. |
20 June 2015, 10:46 | #44 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
edit: i had problem compiling the source with vbcc on my setup ( winuae A1200 ) but i could change the source, so it does now compile here. vc -cpu=68020 FMSynthDX7_v0.2.c -o FMSynthDX7_v0.2 gave "unknown identifier <input>" errors and some more. i'm not sure, if it is my vbcc setup, the above changes now made it compile here. the unchanged source did compile on cygwin setup, without problems, using: gcc -std=c99 FMSynthDX7_v0.2.c -o FMSynthDX7_v0.2.exe maybe vbcc is more picky in some circumstances Last edited by emufan; 20 June 2015 at 14:58. Reason: removed the source diff |
|
20 June 2015, 11:44 | #45 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 763
|
I have compiled it with CubicIDE+VBCC so must be a compiler setting. For what I can see you must enable c99 support when compiling.
// comments and variable init within for loops are only supported in c99 mode |
20 June 2015, 11:51 | #46 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
Code:
vc -c99 -cpu=68020 FMSynthDX7.c -o FMSynthDX7 |
|
20 June 2015, 14:32 | #47 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,310
|
I started it yesterday already. So attached script cuts the leading 6 bytes and trailing 2 bytes of all files that are in choosen directory (filerequester). The amount of leading and trailing bytes can changed in the script at line 5 and 6. As in the other script results are saved to Ram: (change it in line 7 if you need). Because of simplification only files up to 64 kilobyte will processed.
|
20 June 2015, 14:43 | #48 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 763
|
Hey! Thats great! My next aproach would be to process an entery directory but I see I don't have to.
Good work! |
20 June 2015, 14:59 | #49 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
@daxb: impressive.
edit: just tested your script. it does work well and the resulting 4096 byte files can be extracted with fmconvert Last edited by emufan; 20 June 2015 at 15:10. |
20 June 2015, 17:14 | #50 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,310
|
|
20 June 2015, 20:20 | #51 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
21 June 2015, 05:51 | #52 |
Registered User
Join Date: Nov 2013
Location: Spain
Age: 45
Posts: 314
|
l f**k love EAB, when those things happens.
|
24 June 2015, 00:51 | #53 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 763
|
I was bored and as an exercise to learn more C and Amiga API I have recoded the little program.
Usage DX7toRAW sourcedir destdir If no argument is given an ASL requester will shown where you select Source and Dest. It only process files with 4104 bytes. Don´t know if is necessary to process other sizes. Emufan! Using Amiga API It is under 4 Kb! hehehehehehe I have learned a lot. |
24 June 2015, 02:44 | #54 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
now soo much room to fill for the 64k demo contest
i've just tested it, working well and it's producing valid files, which I converted with fmconvert. most of the dx7 files have 4104 size - just a fraction of them were a bit larger. but i cannot find them at the moment. can we have a look into the source again? edit: can you make it workbench compatible [for the lazy ones] ? Last edited by emufan; 24 June 2015 at 02:50. |
24 June 2015, 06:50 | #55 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 763
|
Sure, I'll put source code but I have to clean up It a bit cos is a bit messy.
What do you refer with wb compatible? To can run It from an icon? I guess I can but will have to study how. Thanks for the testing. |
24 June 2015, 15:35 | #56 |
Shameless recidivist
Join Date: Jun 2012
Location: Duluth, Minnesota (USA)
Age: 38
Posts: 266
|
4104 bytes is the standard DX7 SysEx bank-dump; larger files probably have some librarian program's header or something attached.
|
24 June 2015, 20:43 | #57 | ||
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
Quote:
@commodorejohn: i still cannot find them, but i remember, there were some 4143 (+-) byte files. but maybe 3 out of 100 i found. so we can skip those, i think. |
||
24 June 2015, 22:54 | #58 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 763
|
I have reading about run from wb and seems easy. I'll try if my daughter let me hehehe.
|
25 June 2015, 03:59 | #59 |
Registered User
Join Date: Nov 2013
Location: Spain
Age: 45
Posts: 314
|
I´ve mass converted *all* yamaha dx7 banks I´ve found in the page posted some ago. *all* means all those banks with correct preset naming (I think there are more .syx around there, including dumps from commercial roms).
The patches are in .voice format, which generates 8363hz, 16384 bytes long samples. Note I´ve selected 16384 by default because it is long-short enough to have an idea how it will sound and render at a reasonable time. You can change manually the length if you need. https://www.dropbox.com/s/5v26t4eq87c95wv/YamahaDX7_4Amiga.zip?dl=1 Thanx in random order to Daxb and Tolkien! |
25 June 2015, 05:11 | #60 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,658
|
Can this be converted to WAV or something?
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Request: Keyfiles for FMsynth, Klondike | mr_a500 | request.Apps | 4 | 03 April 2005 14:02 |
|
|