News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_belzebu

Digitize music on CPC or midi converter !?

Started by belzebu, 22:48, 14 March 11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bryce

Yeah, but not a very good one, as far as I can remember, it converts the analogue value to 6bit data and the linearity is questionable. Better to build an external ADC circuit that works on all CPCs.

Bryce.

arnoldemu

Quote from: steve on 16:16, 17 March 11
Could the analogue ports on the plus models be used as an audio digitiser?
I don't think they are refreshed by the hardware fast enough.
" They  are updated approximately 200 times per second".
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Bryce

That's because they don't use a "real" ADC, the input value is fed into a comparator (LA6393) and compared with 6 different reference values, one after another. This also means that the time between samples is dependent on the actual value measured which means that the sample rate isn't linear. This is fine for Analogue Joysticks, but would really mess up music.

Bryce.

arnoldemu

Quote from: belzebu on 15:09, 17 March 11
:) Work all  correctly, i save the memory area and i load it when i need :)
Another question for the "gurus" :) Is possible grab the music from the demo ? and use it !?

Thanks for all!
Belzey

Yes you can grab the music.


You can:
1. record the sound into YM format (you can use an emulator to do this). This can then be played on the CPC.
2. Somebody can look at the code of your program, find the music player and extract it.

So yes it is possible to take music from a demo or game easily and use it again.

This information is about cpc music.

Are you talking about a demo or game on another computer?

Again it is possible to extract it, but then you must convert it to the Amstrad which can be hard to do.


My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

arnoldemu

Quote from: Bryce on 11:04, 17 March 11
From a Hardware point of view, would a hardware solution be of any use? ie: A decent A/D Convertor mapped to an address that you could read from? That way you could connect any source (MP3 Player etc) to the device and a software loop could sample the port at the bit-rate you wanted?

Bryce.
It would be nice for the CPC, but I would normally sample the sound on the PC and convert it.
But, if it was cheap it would be a nice addition to the wiki.

I am now ready for MacDeath to jump in and ask for a Flash based cart, with read/write ram, and also an a/d mapped into the address space too  :laugh:


My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Devilmarkus

Quote from: arnoldemu on 10:24, 18 March 11
I am now ready for MacDeath to jump in and ask for a Flash based cart, with read/write ram, and also an a/d mapped into the address space too  :laugh:

Optimized for FutureOS? (With FutureOS tools to access the flash card?)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Bryce

You forgot the USB 3.0 port and Bluetooth transmitter so that it can also be synchronised with your PC :D

Bryce.

steve

What we Really need is a cartridge that can make youtube videos from a running game/program and save them to disk (178k) :laugh: , for later transfer to the PC for uploading.

Devilmarkus

Quote from: steve on 10:43, 18 March 11
What we Really need is a cartridge that can make youtube videos from a running game/program and save them to disk (178k) :laugh: , for later transfer to the PC for uploading.
Please insert Disk 1 side A.
  copying....
  Please insert Disk 1 side B.
  copying....
  Please insert Disk 2 side A.
  copying....
  Please insert Disk 2 side B.
  copying....
  Please insert Disk 3 side A.
  copying....
  Please insert Disk 3 side B.
  copying....
  Please insert Disk 4 side A.
  copying....
  Please insert Disk 4 side B.
  copying....
  Please insert Disk 5 side A.
  copying....
  Please insert Disk 5 side B.
  copying....
  Please insert Disk 6 side A.
  copying....
  Please insert Disk 6 side B.
  copying....

Ok I stop now...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

redbox

Quote from: arnoldemu on 10:22, 18 March 11
1. record the sound into YM format (you can use an emulator to do this). This can then be played on the CPC.
2. Somebody can look at the code of your program, find the music player and extract it.


I have tried option 1 and the results were always at best, not quite right and at worst, very poor.


Option 2 is better for a 'perfect rip', but then again the player code might be crappy and not well optimised.


I wish there was a better way of doing this!

belzebu

Yes, sorry, i m talking about Amstrad CPC :)
I haven't understand how to re-use the grabbed sound in YM format in to another program...
Sorry i m not a beginner, i m a snow puppet in the storm :)

Bye
Belzy

RockRiver

#36
There's a new version of "MID2ASM"... by Karl McNeil and Matt Westcott. Maybe they are not missing like MIDI2AY author...

ftp://ftp.worldofspectrum.org/pub/sinclair/tools/pc/Mid2ASM.zip

Works better than MIDI2AY ? I will try it...

Thanks a lot  for the explanation about 
assemble ASM using wincpc/winape assembler and the ASM music player...

arnoldemu

Quote from: belzebu on 13:27, 18 March 11
Yes, sorry, i m talking about Amstrad CPC :)
I haven't understand how to re-use the grabbed sound in YM format in to another program...
Sorry i m not a beginner, i m a snow puppet in the storm :)

Bye
Belzy

first or use an emulator to make ym file:
http://www.grimware.org/doku.php/documentations/software/starkos/howto.sks2ym
stk2ym

then:
http://genesis8.free.fr/frontend/dmusic.php
kitay03.zip

now you have ayc file, then use this to play:

PLAY-AY .SCE

for arkos tracker:

AKSToYM then do the rest with kitay.

kitay needs special YM files (not compressed).

Perhaps a tutorial is needed to help?

My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

arnoldemu

Quote from: arnoldemu on 13:30, 12 May 11
first or use an emulator to make ym file:
http://www.grimware.org/doku.php/documentations/software/starkos/howto.sks2ym
stk2ym

then:
http://genesis8.free.fr/frontend/dmusic.php
kitay03.zip

now you have ayc file, then use this to play:

PLAY-AY .SCE

for arkos tracker:

AKSToYM then do the rest with kitay.

kitay needs special YM files (not compressed).

Perhaps a tutorial is needed to help?

Some info on push n pop:
http://www.pushnpop.net/index.php?action=posts&category=3&id=32&page=1#lastpost
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

RockRiver

#39
Quote from: demoniak on 13:35, 17 March 11
I've made a small MIDI decoder. Maybe I'll make a MIDI to YM converter with this ?

That will be great!!!! And YM to AY ?
I am a musician (MIDI user) I want to compose throught MIDI (score) and later go to "chipmusic" CPC (AY)...
There was an util to play Music System (RainBird) *.mus files at MIDI interface out... otherwise could be coded?:  Simple MIDI 3 tracks file to AY assembler?

MIDI2AY is for zx spectrum frequencies  :(

Arkos Tracker don't understand musical MIDI rests... and you only could record one channel MIDI to Arkos not the three AY channels together


Excellent CPC music summary page
(in French if you don't understand  :o try google translator  )

RockRiver

Please moderators/webmasters/CPCgods  :) you could change this to "Applications" or "Programing". I found it lucky search in google for MIDI & CPC...
Music is a very important part of our CPCs...

McKlain


RockRiver

#42
On the other side..... AY player .....

Quote from: arnoldemu on 13:30, 12 May 11

now you have ayc file, then use this to play:

PLAY-AY .SCE


AYC is the same than AY file ?

Spectrum have his AY player SpecAY (it works OK) and this is possible for CPC ?   

AYC player (play-ay.sce) could read *.AY files ? Maybe midi2ay.asm ? Or need the coversion AYtoYM (with Bulba's AY emulator) then YMtoAYC ... And play then play a "real" *.ayc ?

Gryzor

...aaand done. Hadn't noticed it, and indeed there should be no reason whatsoever for the OT section. That said, why didn't you post in that thread? :D

Jase

Quote from: Gryzor on 10:55, 15 March 11
Welcome back, mate! Really glad to have you here... :)

If you don't know about music I'd suggest (like Markus did) to pair up with a musician and share the project... it'll be much easier and the result will be much better....

PS About Markus' vid: I'm not sure if we're listening to the music or looking at the chicks...
There's music???? Damn...

Neil Hopkinson

Quote from: CP/M User on 09:38, 16 March 11
AA had a couple of Type-ins which dealt with capturing and digitalising sound (one being Sound Sampler I think from AA15), though the one I thought was pretty good is RSX Speech from AA85:
in one of the following AAs there was a patch for it which allowed people with 128k to put longer sound recordings in the extra 64k which made it really handy!  ;D  You can find it here!
Thanks for this :). I was the one who wrote RSX Speech. I got £25 for it ha ha

sigh

Never seen this before! Will have to give it a try.

AMSDOS

#47
Quote from: Neil Hopkinson on 16:15, 16 October 12
Thanks for this :) . I was the one who wrote RSX Speech. I got £25 for it ha ha


Cool, it's always nice to hear from the authors.  :)  Somebody did a patch on your program, which was a Hot Tip in a later issue of AA Forum, which allowed anyone (I think) with 128k, to use the extra 64k to extend their Digital Sounds, wasn't sure if that was you or not.  :)


EDIT: LOL I'm not reading my threads carefully enough.  :D


Yeah it would of been sad when AA stopping handing out £25, just because people weren't sending in their own programs.  :(
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Devilmarkus

I remember only 1 RSX-Speech, which was a rip-off of Superior Software's speech.
It also had the original Superior Speech RSX commands, but they werent working.

Where can I find a copy of your RSX-Speech? :)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

AMSDOS

Quote from: Devilmarkus on 13:54, 25 October 12
I remember only 1 RSX-Speech, which was a rip-off of Superior Software's speech.
It also had the original Superior Speech RSX commands, but they werent working.

Where can I find a copy of your RSX-Speech? :)


I can type in the program which was in AA85 and post it here along with the Modifications which were in AA87 I think. It's not like RSX Speech I'm thinking of where you type in a RSX and it speaks whatever you've typed in. From memory the idea was to record a speech from Tape and the program had some way of capturing that sound, the modification of it from AA87 meant that if anyone had 128Kb, they could use the extra 64K for their Sound. Some of the stuff I was trying it on I think allowed up to 30 seconds of Digital sound. Only trouble is it might need a real CPC to do the job cause it works from Tape.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Powered by SMFPacks Menu Editor Mod