English Amiga Board


Go Back   English Amiga Board > Requests > request.Apps

 
 
Thread Tools
Old 20 June 2015, 10:16   #41
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 477
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.
tolkien is offline  
Old 20 June 2015, 10:33   #42
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
Code:
outbuffer[i] = inbuffer[i+6];
this is really clever way. i was reading about truncate and some seek functions...
but this is really nice. thanks again
emufan is offline  
Old 20 June 2015, 10:36   #43
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 477
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.
Attached Files
File Type: c FMSynthDX7.c (2.1 KB, 72 views)
tolkien is offline  
Old 20 June 2015, 10:46   #44
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
Quote:
Originally Posted by tolkien View Post
That was my first idea but I was lazy I go for the simple one! More bytes but this is not demoscene! hehehehe
it still fits the 64k demo contest

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
emufan is offline  
Old 20 June 2015, 11:44   #45
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 477
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
tolkien is offline  
Old 20 June 2015, 11:51   #46
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
Quote:
Originally Posted by tolkien View Post
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
you are right, i have only the commandline installation of vbcc:
Code:
vc -c99 -cpu=68020 FMSynthDX7.c -o FMSynthDX7
this did the trick, thanks
emufan is offline  
Old 20 June 2015, 14:32   #47
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 2,025
Quote:
Originally Posted by adrdesign View Post
It would be magic if someone makes a command to do that work. I mean, cutting 6 first bytes and the trailing 2 bytes. We could convert finally the entire library...
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.
Attached Files
File Type: lha TruncateBytes.lha (1.3 KB, 60 views)
daxb is offline  
Old 20 June 2015, 14:43   #48
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 477
Hey! Thats great! My next aproach would be to process an entery directory but I see I don't have to.
Good work!
tolkien is offline  
Old 20 June 2015, 14:59   #49
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
@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.
emufan is offline  
Old 20 June 2015, 17:14   #50
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 2,025
Quote:
Originally Posted by emufan View Post
@daxb: impressive.
Not really. At least if you know ARexx a bit it is easy work.
Quote:
edit: just tested your script. it does work well and the resulting 4096 byte files
can be extracted with fmconvert
Nice to hear that it works for you. Thank you for testing!
daxb is offline  
Old 20 June 2015, 20:20   #51
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
Quote:
Originally Posted by daxb View Post
Not really. At least if you know ARexx a bit it is easy work.
from the view of an unaware dude, it is impressive what one can do with arexx
emufan is offline  
Old 21 June 2015, 05:51   #52
adrdesign
Registered User

adrdesign's Avatar
 
Join Date: Nov 2013
Location: Spain
Age: 39
Posts: 269
l f**k love EAB, when those things happens.
adrdesign is offline  
Old 24 June 2015, 00:51   #53
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 477
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.
Attached Files
File Type: txt DX7toRAW.exe.txt (3.5 KB, 55 views)
tolkien is offline  
Old 24 June 2015, 02:44   #54
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
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.
emufan is offline  
Old 24 June 2015, 06:50   #55
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 477
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.
tolkien is offline  
Old 24 June 2015, 15:35   #56
commodorejohn
Shameless recidivist
commodorejohn's Avatar
 
Join Date: Jun 2012
Location: Duluth, Minnesota (USA)
Age: 32
Posts: 179
4104 bytes is the standard DX7 SysEx bank-dump; larger files probably have some librarian program's header or something attached.
commodorejohn is offline  
Old 24 June 2015, 20:43   #57
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
Quote:
Originally Posted by tolkien View Post
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.
yes, double click on workbench is faster than open shell and stuff.
Quote:
Thanks for the testing.
feedback is always good, so I just gave it a go

@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.
emufan is offline  
Old 24 June 2015, 22:54   #58
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 477
I have reading about run from wb and seems easy. I'll try if my daughter let me hehehe.
tolkien is offline  
Old 25 June 2015, 03:59   #59
adrdesign
Registered User

adrdesign's Avatar
 
Join Date: Nov 2013
Location: Spain
Age: 39
Posts: 269
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!
adrdesign is offline  
Old 25 June 2015, 05:11   #60
Akira
Registered User

Akira's Avatar
 
Join Date: May 2001
Location: New York
Posts: 19,265
Can this be converted to WAV or something?
Akira is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:59.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.08647 seconds with 14 queries