CPCWiki forum

General Category => Amstrad CPC hardware => Topic started by: GUNHED on 18:50, 18 February 21

Title: LambdaSpeak FS
Post by: GUNHED on 18:50, 18 February 21
Information leaked, so here it comes....

The LambdaSpeak III is a great expansion with lots of features.
However it is not really cheap. Parts just have their price.

But... we decided to release the LambdaSpeak FS, which is nearly the same as the LS III.


What are the differences?

- The SPO256 chip is missing (no problem, the Click-2-Speach does the job anyway)
- You get an additional serial port, suitable for MIDI IN and OUT and way more
- EEPROM missing
- It's way cheaper!


What are the features?

LambdaSpeak FS (2021)
- Perfect Speech Synthesis (English and Spanish!)
- MP3 Player with SD card
- Real Time Clock (native OS, CP/M)
- PCM Sample Player
- 70 new RSX Commands
- Software for CP/M too
- Emulation of:
  * SSA-1 speech synthesizer
  * dk'tronics speech synthesizer
  * Amdrum Drumkit
  * Epson and DECtalk Modes
- Thermo sensor
- Serial Port (up to 625000 Baud)
- MIDI IN and OUT Option
- Two DSKs of software
- MX4 connector
- Help & Support granted

How to get it? Well, we wait for the next promotion for the Click2Speach board to save $20. Meanwhile we're building the boards.

Should you buy one?
- If you have the LS III, then NO  ;) :) ;)
- If you have no LS, the YES  :) :) :)


Preorder list for first batch of 10 units:
- Rambler
- valfac
- RetroCPC
- Neurox66
Title: Re: LambdaSpeak FS
Post by: XeNoMoRPH on 19:30, 18 February 21
I have LS III  ;D
Title: Re: LambdaSpeak FS
Post by: GUNHED on 02:49, 19 February 21
I have LS III  ;D
You are the lucky one. We work on some new software for LFS, it will run on LS3 too.  :)
Title: Re: LambdaSpeak FS
Post by: eto on 12:57, 19 February 21
how much will it be?
Title: Re: LambdaSpeak FS
Post by: GUNHED on 16:25, 19 February 21
how much will it be?
Good question... the main "thing" here it this one...

https://www.mikroe.com/text-to-speech-click


At the moment the 'Text to Speech' Module costs 39 Dollars, but from time to time they have a promotion and the price drops to 19 Dollars - we wait for that now.
The remaining components are maybe around 30-40 Dollars, we need to see where to make the best deals.  :)


Also, the price depends if you want to have the MP3 player (or not) and the RTC (or not).


We use these boards:
MP3: Aideepen YX5300 UART Control Serial MP3 Music Player Module for Arduino/AVR/ARM/PIC
https://www.amazon.de/aideepen-yx5300-UART-Steuerung-MP3-Music-Arduino/dp/B01JCI23JG


RTC: HiLetgo 5pcs DS3231 AT24C32 Clock Module Real Time Clock Module IIC RTC Module for Arduino Without Battery
https://www.amazon.de/Demarkt-AT24C32-Precision-Modul-Speichermodul-Arduino-1PCS/dp/B07NW86D97/ref=sr_1_3?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=DS3231+AT24C32+Clock+Module+Real+Time+Clock+Module+IIC+RTC+Module+for+Arduino+Without+Battery&qid=1613744738&s=ce-de&sr=1-3


Meanwhile software is getting more and boards will get their first components soon. I'll keep you updated. And if there is a text2speech board promotion please let me know.


By the way, the project page is here:

https://github.com/lambdamikel/LambdaSpeak-FS

Title: Re: LambdaSpeak FS
Post by: genesis8 on 16:48, 19 February 21
I am interested for one (including MP3 and RTC), I cant wait the promotion.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 17:06, 19 February 21
PM sent.  :)


Hope the have a batch of 10 units available soon.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 13:58, 23 February 21
Software & Firmware update on my HP and here...

What new?
- !ADEXIT can exit the AMDRUM mode
- !LSHELP (hopefully) litte more lookable
- Firmware 5 (can now exit from AMDRUM mode)

Have fun!
Title: Re: LambdaSpeak FS
Post by: GUNHED on 17:15, 26 February 21
You want to use MIDI with LFS or LS3?
Then you can connect via the MIDI breakout board:

https://www.amazon.com/ubld-it-MIDI-Breakout-Board-EZ/dp/B08JC1SZHG/


LambdaMikel made some software for it, see his channel at youtube f.e.


More software is planned.
Therefore let me know which kind of software you would like to have for CPC and Plus computers.
There is MIDI IN and MIDI OUT.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 18:36, 03 March 21
A new software update for LambdaSpeak is out, now with the Digitrakker from Prodatron (Trakker and Player generator adapted for LambdaSpeak).

MiguelSky made me aware that the RAM RSX from disc don't work. Sorry for this, I worked most of the time on the ROM version. I will care about the RSX for RAM soon.

And now here a video of LambdaSpeak and Prodatrons great Digitrakker:

https://www.youtube.com/watch?v=ffm2ckMMNg4 (https://www.youtube.com/watch?v=ffm2ckMMNg4)
Title: Re: LambdaSpeak FS
Post by: GUNHED on 03:02, 05 March 21
Thanks to Genesis 8, here is the actual software for the LFS:
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip

The RAM RSX doesn't work at the moment (MiguelSky pointed me at that bug), but I will render it working soon. Will keep you updated...  :) :) :)
Title: Re: LambdaSpeak FS
Post by: GUNHED on 16:15, 05 March 21
Hi there!

Today I opened the preorder list for the first 10 LambdaSpeak FS expansion cards.
This is especially for people who want to really use the LFS, not for pure collectors.

If you want one unit please PM here and I will put your nick in the preorder list (see first post).
Title: Re: LambdaSpeak FS
Post by: GUNHED on 21:16, 07 March 21
All the songs which are 'expected' by the MP3 player can be found at Mega Download.
(However, these songs are on you 'present' SD card anyway, but just in case ...)

See here:
https://mega.nz/file/q0djxIYD#dYcjvVoW3frF6eo_L1dZwh76BI6laYOwBrThm46u56k (https://mega.nz/file/q0djxIYD#dYcjvVoW3frF6eo_L1dZwh76BI6laYOwBrThm46u56k)
Title: Re: LambdaSpeak FS
Post by: GUNHED on 03:48, 10 March 21
Small update of software (RAM RSX now cleared of a bug). New firmware.
Title: Re: LambdaSpeak FS
Post by: zhulien on 17:17, 10 March 21
for me for some reason the lambdaspeak software update doesn't work, does it work for anyone else?
Title: Re: LambdaSpeak FS
Post by: GUNHED on 01:25, 11 March 21
for me for some reason the lambdaspeak software update doesn't work, does it work for anyone else?
Which LS do you use? You have the LS3, right?
What exactly is the problem?
Please describe!  :) :) :)
Title: Re: LambdaSpeak FS
Post by: zhulien on 09:28, 11 March 21
sorry I should have said the download link doesn't work within your signature.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 14:49, 11 March 21
sorry I should have said the download link doesn't work within your signature.
Ah, well. Yes, that's a bit of a wiki forum problem I guess. Try something like "Save link as..." or copy & paste the link. I have the same problem with Chrome too. But it's out of my hands.
In the worst case goto www.futureos.de (http://www.futureos.de) - there to downloads and scroll down.

For the LS3: Lots of new software for the LFS will work there too (of course), but we will need a bit of time to catch up with LS3 DSKs. At the moment we got serial communication and MIDI on the plate.

Thanks a lot for your interest and support!  :) :) :)  Feedback is always a gem.  :) :) :)
Title: Re: LambdaSpeak FS
Post by: GUNHED on 23:57, 17 March 21
Did somebody use the RAM RSX expansion?
Were there problems?
(Recent version I mean)
Title: Re: LambdaSpeak FS
Post by: GUNHED on 17:19, 18 March 21
Did somebody use the RAM RSX expansion?
Were there problems?
(Recent version I mean)
Seems the the problem was one of the M4 card. Maxam creates binaries with file-length=0. This is a problem when using file copy of the M4 card. I suggest (MiguelSky) to load/save the file by hand, this way the file length is added to the file-header.

News:
The new update has an expanded manual and the first batch of commands for serial communication. I will test the commands during the coming week on real hardware.

Get your LambdaSpeak FS PCB...
RetroCPC did ask me if this is doable. Well, I can ship a bare PCB to anybody. This is 5 Euros for postage and PCB. Let me know during the next couple of days. Later on I will order parts and then they shall fit to the number of remaining PCBs.  :)
Title: Re: LambdaSpeak FS
Post by: GUNHED on 20:31, 19 March 21
Great, nobody wants PCBs, then I start working on the 10 units...
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 20:36, 19 March 21
I think that's because by now everybody knows how to order Gerbers from one of these Seeed-alike PCB maker services and can make them themselves for little money. So there is no need for a "man in the middle" in that sense anymore.

Like these Russian dudes that grabbed the LS3 Gerbers from the Github and are selling it on Chipkin.ru:

https://chipkin.ru/product/pechatnaya-plata-14/ (https://chipkin.ru/product/pechatnaya-plata-14/)

I am sure your assembly services will be valued much more! It takes a lot of time effort and skill to make one of these.
 
Title: Re: LambdaSpeak FS
Post by: GUNHED on 21:01, 19 March 21
I am sure your assembly services will be valued much more! It takes a lot of time effort and skill to make one of these.
Well, I hope you can help me with this... What I would need is a plan which describes which part is which and where it come. And of course where to buy them. IIRC you do have that all.  :)  Meanwhile I do the 'Drahtbrücken'.  ;) :) :laugh:
Title: Re: LambdaSpeak FS
Post by: GUNHED on 23:49, 20 March 21
sorry I should have said the download link doesn't work within your signature.
Works now. Update is up.  :)
Title: Re: LambdaSpeak FS
Post by: MiguelSky on 13:00, 26 March 21
I got some trouble in making the card pronounce correctly stressed syllables in Spanish as it uses a predictive way of pronunciation quite accurate but not for all words as you can type the accented vowels in CPC. I sorted this issue by using double vowel or hyphens, depending on the word structure. Just in case someone else bump into the same problem.
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 02:46, 29 March 21
I got some trouble in making the card pronounce correctly stressed syllables in Spanish as it uses a predictive way of pronunciation quite accurate but not for all words as you can type the accented vowels in CPC. I sorted this issue by using double vowel or hyphens, depending on the word structure. Just in case someone else bump into the same problem.
Like all automatic text-2-speech algorithms, the Spanish Epson parser that translates into DECtalk phonemes uses rules and heuristics, and these sometimes fail. That also happens in English mode btw.

In any case, the acceptable codes should just be standard ASCII (is that ISO-LATIN1?) :

áéíóúüñ  -> E1 E9 ED F3 FA FC F1
so each ASCII character with 8. bit set (> 127) needs to be sent in HEX using \x??.
Hence, the following should in principle work in |spanish |epson mode, but as I said, the parser can make mistakes: 

\xE1, ..., \xF1

Title: Re: LambdaSpeak FS
Post by: GUNHED on 14:45, 29 March 21
Also it's fun to let tell the LS pseudos like "AST" or "PDT"...  :P
Title: Re: LambdaSpeak FS
Post by: GUNHED on 15:15, 08 April 21
The RSX ROM for LSF was slightly changed. Now it does NOT reset the LS at initialization. Because some games need the SSA1 mode or the dk'tronics mode. Well, these games just initialize all ROMs and this does of course also init the LS ROM - and this in turn would reset the LS.

Now, all speech games will work without unplugging the RSX ROM.

Let me know in case there is a problem.

Download as usual ... see my signature or goto downloads at www.futureos.de (http://www.futureos.de)
Title: Re: LambdaSpeak FS
Post by: GUNHED on 15:08, 13 April 21
The new Firmware version 8 is out for LambdaSpeak FS. Enhancements in the serial communication, MIDI and so on. Please update your  ATmega 644 CPU. The new RSX ROM does support it. Here is the firmware file...
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 04:32, 14 April 21
And here is the first MID file player for the CPC:

https://www.youtube.com/watch?v=hgxb1jFQXZo (https://www.youtube.com/watch?v=hgxb1jFQXZo)

 :)

Update: Folks also asked for Speak&SID and LambdaSpeak 3, so here it goes.
Who likes Bach?

https://youtu.be/VYSfdv_Bce8
https://youtu.be/DupxDnYlKGM

Title: Re: LambdaSpeak FS
Post by: XeNoMoRPH on 12:07, 14 April 21
Eeeeeeh, update firmware for my powerful  LS3?  :o :o :o
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 17:35, 14 April 21
Eeeeeeh, update firmware for my powerful  LS3?  :o :o :o
Not necessarily...the same should already work with LS3 since 2019  ;) I'll try with the LS3 and post a video soon. It should just work. Check out the MIDISYN.BAS program on the LS3.DSK.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 01:17, 15 April 21

Eeeeeeh, update firmware for my powerful  LS3?  :o :o :o

There will be one, we're still testing some 'news'  :) :) :)

Simple Terminal program for LSF, see LSF DSK 2 in my downloads, or here:
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 07:46, 21 April 21
Simple Terminal program for LSF, see LSF DSK 2 in my downloads, or here:

Oh that's great, finally my CPCs can chat with each other!

https://youtu.be/yyLCA3sauxY (https://youtu.be/yyLCA3sauxY)

Thanks much, great work! I had to remove the "CLEAR INPUT" in line 340 for the 464 though.
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 03:42, 22 April 21
Enough with all that classical piano B***S*** music for intellectuals  :P
Let's hear some real music from the CPC  ;D 8)
https://youtu.be/eS8sM_TLJnQ


Title: Re: LambdaSpeak FS
Post by: RetroCPC on 04:26, 22 April 21
Brilliant Midi controller in full swing :) great work :)

Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 04:48, 22 April 21
Thank you!

In principle yes... but there is still a bit of work to do  ;) See, the MIDI data is streamed into the CPC from the PC currently, and then echoed into the MIDI module.

This experiment shows that the interface and the CPC is fast enough to also, in principle, process complex MIDI songs. What we now need to do is record the incoming MIDI messages, associate each message with some time stamp info (e.g., FrameFly Ticker Counter value Delta from the previous MIDI message), write them into CPC RAM as they arrive, and write them to disk. Then, "MIDI record" the MIDI data streamed from the PC over USB MIDI into the CPC - a song such as Van Halen or Descent  2. Once recorded, we would like to play these MIDI messages back from RAM, utilizing the timestamp info we added. Not sure how much MIDI message data the CPC RAM can hold (well, we have memory expansions). In any way, the CPC should be fast enough to record and play back the MIDI message data in realtime, also for complex scores. The recorder and playback machine code programs still need to be written.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 14:48, 22 April 21
Yes, or have a kind of 'converter' maybe?
Title: Re: LambdaSpeak FS
Post by: GUNHED on 18:03, 22 April 21

Thanks to Michael, we got FW9 now.
Firmware 9 tested and verified. Better serial communication (file attached).
Please see my pages download for new updates too if you like.
Title: Re: LambdaSpeak FS
Post by: RetroCPC on 18:14, 22 April 21
Yes, or have a kind of 'converter' maybe?

"Intelligent" MIDI repeater :D
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 18:15, 22 April 21
Yes, or have a kind of 'converter' maybe?
Well, the converter would be a full-blown "MID" file player. Something that can just play back the standard MID files from the CPC and stream out the MIDI.

Here it is a bit simpler - the MID file is played by the PC and output as MIDI messages into the CPC via the USB -> MIDI PC Interface. The CPC would only have to record these (with timestamp information) into memory and play them back from there. A kind of "real time sequencer". I think this is easier to implement on the CPC than a full-blown MID player. But you are the expert, you will see when you get to it  ;)
Or there could be a PC Program (e.g., in Python) that writes out a CPC Assembler Program for a song. I believe this is what Arkos Tracker does (not sure it can write MIDI CPC Songs though). Python has lots of libraries for dealing and parsing MID files.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 18:23, 22 April 21
Well, the converter would be a full-blown "MID" file player. Something that can just play back the standard MID files from the CPC and stream out the MIDI.
Yes, that's what we need.

Here it is a bit simpler - the MID file is played by the PC and output as MIDI messages into the CPC via the USB -> MIDI PC Interface. The CPC would only have to record these (with timestamp information) into memory and play them back from there. A kind of "real time sequencer". I think this is easier to implement on the CPC than a full-blown MID player. But you are the expert, you will see when you get to it  ;)
Or there could be a PC Program (e.g., in Python) that writes out a CPC Assembler Program for a song. I believe this is what Arkos Tracker does (not sure it can write MIDI CPC Songs though). Python has lots of libraries for dealing and parsing MID files.

The question is: How much memory would this effort take up?
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 18:41, 22 April 21
Yes, that's what we need.

The question is: How much memory would this effort take up?

I don't think that much - van Halen MID File has only 45 KBs. So, if you only record the essential MIDI Messages with the CPC, (plus Timestamp added - something similar is also already in the MID file, but not represented in the MIDI messages when they arrive of course!), then it should just fit fine into the CPC memory. An some of the MIDI messages we would not need to record either.

As you year, something like van Halen MID file is reallly the creme de lá creme de lá creme of MID files. There are much more simpler and still great sounding MID files that have onl 24 KBs.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 03:08, 23 April 21
Would a 'record' of the 45 KB MID file (with timestamps) be smaller?
Title: Re: LambdaSpeak FS
Post by: RetroCPC on 05:44, 23 April 21
If my memory serves me correct (bare in mind is was back in 1984 or some such) - the Music Machine for the CPC had a Midi sequencer, I used it with a Cheetah Midi keyboard.

http://www.cpcwiki.eu/index.php/Music_Machine


A quick search and I can only find a MP3 file of the program tape - not sure if a DSK file version of the software is available anywhere...

The Music Machine's great as it has an ADC - if we where to recreate one we could use a modern 16b Audio ADC and dither down to 8bits with a small FPGA...
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 08:45, 23 April 21
The Music Machine's great as it has an ADC - if we where to recreate one we could use a modern 16b Audio ADC and dither down to 8bits with a small FPGA...

Great idea in principle, just not sure what it would entail for the firmware. Would sampling need some extra RAM (EEPROM?) on board? The CPC doesn't have a lot of space for high-quality samples. LambdaSpeak 3 had 128 KB SPI EEPROM for PCM Sample memory.

I saw a replica of the Music Machine on Ebay, btw. Somebody is selling the PCBs.
https://www.ebay.com/itm/114671480943?hash=item1ab2f3f06f:g:xV0AAOSw4UVgH-FO (https://www.ebay.com/itm/114671480943?hash=item1ab2f3f06f:g:xV0AAOSw4UVgH-FO)

Unfortunately, the ATMega is also almost full... it seems such a project needs a more capable MCU?

Regarding old MIDI Sequencer programs for the CPC - I am a bit skeptical that they are really capable. For example, did it support MIDI track playback and simultaneous MIDI in sequencing / recording? And then, the polyphony... and multiple tracks of instruments. I have doubts that any of the existing CPC MIDI programs could reproduce something like the Jump! MID above. Did the MUSIC Machine software produce its own sounds, or require a MIDI module?
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 09:03, 23 April 21
Regarding the Music Machine, it has some limitiations:

http://www.cpcwiki.eu/imgs/c/c7/Music_Machine_Manual.pdf (http://www.cpcwiki.eu/imgs/c/c7/Music_Machine_Manual.pdf)

- for example, Page 28:
  (e) Using a MIDI Synthesizer, you may play 2 MIDI Machines notes simultaneously
- on Page 36:  The total [PCM sample] duration is 1.2 seconds  (24 KBs of RAM left)

Our MIDI AY CPC demo program uses all 3 AY voices (plus 3 more with Speak&SID from the SID chip... work in progress) 

So much for polyphony  ;)
Well, the AY has only 3 voices, and it seems you can also play a PCM Sample over MIDI. Of course, this is monophone... the Amdrum allowed for up to 3 PCM voices to be mixed together "on the fly" if I remember correctly. So this is a bit more limited than the Amdrum wrt PCM playback it seems.

Well, it's a cool device for sure, for the time, but has severe limitations.

The biggest drawback regarding MIDI IMHO is that you cannot really playback any standard MID files with it. This is what I am looking for. AS there are so many fun MIDs available. Nobody wants to use a clunky slow CPC editor to input some 3channel MIDI song by hand or one note at a time with a step sequencer (not realtime recording).

Besides, if you would add a chip such as the VS1053B (https://www.ebay.com/itm/264461148135?var=564137559943) then you would also have a GM MIDI synthesizer on board. This is what SymbiFace 3 has. For MP3, but they can also do MIDI. AFAIK, they stream the MIDI from the SDcard though, not from the CPC, which basically turns it into a SDcard MIDI jukebox then? Not sure that's the case. MIDI is only interesting if it is being generated / processed by the CPC IMHO, and not coming from SDcard which the firmware of the expansion card accesses.And, unlike MP3, for MIDI it is a realistic option that the CPC generates / streams it, and not only initiates a "playback from SDcard" command to the firmware. For MP3, the file sizes are of course prohibitive from a CPC point of view. So SDcard-based MP3 playback it is, like in LambdaSpeak. Even with 4 MB CPC memory expansion it would be insane of trying to attempt to playback / stream MP3 from the CPC memory  :) PCM samples and MIDI are a different story IMHO - see Amdrum, Music Machine, .... 
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 18:08, 23 April 21
Would a 'record' of the 45 KB MID file (with timestamps) be smaller?

Not sure. The MID format is pretty compact.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 21:59, 23 April 21
Our MIDI AY CPC demo program uses all 3 AY voices (plus 3 more with Speak&SID from the SID chip... work in progress) 
Actually it would be great if the 6 voices of the PlayCity can be added too. It's very easy to use them. Just like the AY, but write data direct (not via PIO). Maybe an idea to think about?  :)
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 23:12, 23 April 21
Actually it would be great if the 6 voices of the PlayCity can be added too. It's very easy to use them. Just like the AY, but write data direct (not via PIO). Maybe an idea to think about?  :)
I didn't realize it's that easy. However, I am using ENVs controlled by the firmware... not sure how easy it is to have the firmware control PlayCity ENVs? I could probably use the hardware ENVs of the AY, that should be easier. Anybody has a BASIC code example for making a "Bell-like" (decaying) sound with PlayCity, using a hardware ENV?

NOTE: Speaking of which... I think I never really tried any of the AY's hardware ENV's in the CPC. Because I think it's impossible, given that the firmware controles the volume / ENVs, and hence would overwrite any hardware ENV volume control? Anybody know more? I guess it is as easy as writing some OUT commands to some registers in order to check if we can enable the AY's hardware ENVs. I'll try that at some point.

https://k1.spdns.de/Develop/Hardware/Infomix/ICs%20computer/IO%2C%20DMA%2C%20Timer/Sound/AY8910%2C%20AY8912%20PSG/psg.html (https://k1.spdns.de/Develop/Hardware/Infomix/ICs%20computer/IO%2C%20DMA%2C%20Timer/Sound/AY8910%2C%20AY8912%20PSG/psg.html)

@TotO (https://www.cpcwiki.eu/forum/index.php?action=profile;u=290) can you let me know what the preferred (simple) way of using ENVs with PlayCities AY is? Is the interupt counter to be used for this, or will simple hardware ENVs work? Thank you. A simple BASIC program would help that shows how to set up a harware ENV.
Title: Re: LambdaSpeak FS
Post by: Animalgril987 on 21:01, 25 April 21
@VintageAdvantage (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3600)  Hardware Envelopes can be specified in both BASIC ( ENV command) and firmware ( SOUND_AMPL_ENVELOPE (CALL &BCBC))
 :D


Alan.
Title: Re: LambdaSpeak FS
Post by: Nemo59 on 23:27, 25 April 21
Could this work with a CPC+ ?
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 03:44, 26 April 21
@VintageAdvantage  Hardware Envelopes can be specified in both BASIC ( ENV command) and firmware ( SOUND_AMPL_ENVELOPE (CALL &BCBC))

Thanks Alan / @Animalgril987 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3936) , but that wasn't the question  ;)
Beside, Firmware and "ENV" in BASIC is the same, and that's a "software envelope", NOT a hardware envelope. And obviously, the CPC Firmware cannot controll the PlayCity envelopes, so my suspicion is it is easiest to use the hardware envelopes from the chip (that don't require programming) rather than setting up an interupt counter for periodic volume changes and such. 
Title: Re: LambdaSpeak FS
Post by: Animalgril987 on 21:01, 26 April 21
@VintageAdvantage (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3600) , I quote from the CPC464 User Manual (Chapter 8, page 15 in the 2nd Edition):


" The second form specifies an envelope section to be executed directly by the sound hardware, where
<hardware envelope> is the value to be set into the envelope shape register (register at, octal).
<envelope period> is the value to be set into the envelope period registers (registers 13 & 14, octal)."


The registers mentioned are the PSG HARDWARE envelope control registers.


Alan.
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 23:33, 26 April 21
@VintageAdvantage (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3600) , I quote from the CPC464 User Manual (Chapter 8, page 15 in the 2nd Edition):


" The second form specifies an envelope section to be executed directly by the sound hardware, where
<hardware envelope> is the value to be set into the envelope shape register (register at, octal).
<envelope period> is the value to be set into the envelope period registers (registers 13 & 14, octal)."


The registers mentioned are the PSG HARDWARE envelope control registers.


Alan.
Thanks @Animalgril987 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3936)  / Alan. Indeed, I wasn't aware that you can use the firmware (&BCBC) to define hardware envelopes (and not only software envelopes, which is the usual use case for &BCBC), given that this is straightforward for the AY even without the firmware support. Well, for the CPC, to get to the AY one has to go over the PIO, so maybe &BCBC helps a bit for that.

In any way, I'll probably just use the firmware then for the CPC AY hardware envelopes, and have to figure out how to write the AY registers directly for PlayCity. Shouldn't be difficult (and actually easier than going over the PIO for the CPC's AY).

I am currently using &BCBC for software envelopes for the CPC MIDI Synth, but I am going to change that so that both the CPC AY and the PlayCity will use (the same) hardware envelopes then.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 00:58, 27 April 21
This still got nothing to do with the PlayCity though. But back to LambdaSpeak FS ...
Title: Re: LambdaSpeak FS
Post by: GUNHED on 21:52, 28 April 21
New firmware, new software. See Michaels and my homepages please.


Comments are always welcome.   :)
Title: Re: LambdaSpeak FS
Post by: RetroCPC on 03:35, 29 April 21
Regarding the Music Machine, it has some limitiations:

http://www.cpcwiki.eu/imgs/c/c7/Music_Machine_Manual.pdf (http://www.cpcwiki.eu/imgs/c/c7/Music_Machine_Manual.pdf)

- for example, Page 28:
  (e) Using a MIDI Synthesizer, you may play 2 MIDI Machines notes simultaneously
- on Page 36:  The total [PCM sample] duration is 1.2 seconds  (24 KBs of RAM left)

Our MIDI AY CPC demo program uses all 3 AY voices (plus 3 more with Speak&SID from the SID chip... work in progress) 

So much for polyphony  ;)
Well, the AY has only 3 voices, and it seems you can also play a PCM Sample over MIDI. Of course, this is monophone... the Amdrum allowed for up to 3 PCM voices to be mixed together "on the fly" if I remember correctly. So this is a bit more limited than the Amdrum wrt PCM playback it seems.

Well, it's a cool device for sure, for the time, but has severe limitations.

The biggest drawback regarding MIDI IMHO is that you cannot really playback any standard MID files with it. This is what I am looking for. AS there are so many fun MIDs available. Nobody wants to use a clunky slow CPC editor to input some 3channel MIDI song by hand or one note at a time with a step sequencer (not realtime recording).

Besides, if you would add a chip such as the VS1053B (https://www.ebay.com/itm/264461148135?var=564137559943) then you would also have a GM MIDI synthesizer on board. This is what SymbiFace 3 has. For MP3, but they can also do MIDI. AFAIK, they stream the MIDI from the SDcard though, not from the CPC, which basically turns it into a SDcard MIDI jukebox then? Not sure that's the case. MIDI is only interesting if it is being generated / processed by the CPC IMHO, and not coming from SDcard which the firmware of the expansion card accesses.And, unlike MP3, for MIDI it is a realistic option that the CPC generates / streams it, and not only initiates a "playback from SDcard" command to the firmware. For MP3, the file sizes are of course prohibitive from a CPC point of view. So SDcard-based MP3 playback it is, like in LambdaSpeak. Even with 4 MB CPC memory expansion it would be insane of trying to attempt to playback / stream MP3 from the CPC memory  :) PCM samples and MIDI are a different story IMHO - see Amdrum, Music Machine, ....

The original fairlight sampler had less then a second or so of sampling memory, and its pretty much responsible for the age of electronic sampled music...

Its said that Drum samples require less about 100ms... sounds a little short to me, but then it gives an idea...

Personally I like the idea that the CPC is doing the real work (sampling), rather then just acting as a controller...

The VS1053B an interesting chip – you have to wonder how many of such oddball chips coming out of Finland are a result of the Nokia shutdown and redundancy funds then pumped into small startups... Not knocking them, but it must be hard when your located in Finland to get much global market penetration – especially when Asia is your target market for such designs...


The Finair cabin crew used to visit our “local” Irish pub in downtown Guangzho China (Paddy fields) – lets just say they where always “good fun” and I have many fond memories and leave it at that – not sure I'd trust to fly with them...


I'm currently fighting a PCB design, once its out of the way then I'll have time to “play”  :)


Title: Re: LambdaSpeak FS
Post by: RetroCPC on 03:41, 29 April 21
New firmware, new software. See Michaels and my homepages please.


Comments are always welcome.   :)

Can you please post a link to the mention home page? :)
Title: Re: LambdaSpeak FS
Post by: XeNoMoRPH on 11:15, 29 April 21
this sites are under GUNHED´s signature

Quote
http://futureos.de (http://futureos.de) --> Get the revolutionary FutureOS (Recent update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip (http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip) --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.04.27)
and this other one:
https://github.com/lambdamikel/LambdaSpeak-FS (https://github.com/lambdamikel/LambdaSpeak-FS)
Title: Re: LambdaSpeak FS
Post by: GUNHED on 17:27, 29 April 21
Yes, it's in my signature. And I try to keep the date-stamp there updated, so you see if it makes sense to update from there.  :)
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 22:17, 29 April 21
The original fairlight sampler had less then a second or so of sampling memory, and its pretty much responsible for the age of electronic sampled music...


That was because of 24bit PCM sample quality I believe. Samples could have been longer with 8 Bit PCM. I am not sure if 8bit came with the Fairlight 2? Memory / RAM was expensive back then.

History wise - I think that *at least* 50 % of the credit for creating sampling-based synthesizer technology should go to Wolfgang Palm, who created the PPG 340/380 at about the same time (or earlier) than Fairlight. The Synclavier guys also deserve quite a bit of credit here as well:

http://www.ppg.synth.net/340380/ (http://www.ppg.synth.net/340380/)

http://wolfgangpalm.com/story/ (http://wolfgangpalm.com/story/)

Later came the WaveComputer 360A and then the PPG Wave 2.0, which many of us will know. Then came Waldorf, the Wave and the MicroWave. Wolfgang Palm also invented Wave Table Synthesis,  which is more advanced than simple PCM-sample playing. But his first machines were simple PCM-based sample players AFAIK. That all happened in my hometown, Hamburg, so we are very proud of Wolfgang ;-)

Quote

Its said that Drum samples require less about 100ms... sounds a little short to me, but then it gives an idea...

That's probably true for all but cymbal rides and cymbal crashes that are decaying a long time. For LambdaSpeak 3 and its samples, most samples take ~10 KB, with the exception of the above (~ 40 KBs). The 128 KBs of EEPROM on LS3 are just enough to hold a full drum set in decent quality. Wouldn't fit in the 464 memory.

Quote
Personally I like the idea that the CPC is doing the real work (sampling), rather then just acting as a controller...


Me too. But memory... and it also opens up the possibility of doing things like a PCM-based pattern sequencer / drum computer from BASIC, like here:

https://www.youtube.com/watch?v=M7aI7KLEi1s (https://www.youtube.com/watch?v=M7aI7KLEi1s)

Title: Re: LambdaSpeak FS
Post by: RetroCPC on 05:45, 30 April 21
WRT the Fairlight I was accidentally careful to say "sampled music" as  a quick read of the links it appears that the PPG 340/380 used wave synthases (earlier design seemed to based on more traditional oscillator type designs) there seems to be no mention of PCM sampling - not sure about the synclavier, but really interesting as its the first I've heard Wolfgang Palm... which is sad I guess!

I've schematics somewhere for the early fairlight (they are available on the internet - a French guy seems involved with legacy support IIRC) where 8bit sampling - with later fairlight 3 being 16bits, not sure there was ever a 24bit fairlight...

Back to the CPC :) I think CPU power is more limiting them memory for higher quality samples - 8bit with decent dither can give surprisingly good results, so the question is whats more important higher sample rate or greater bitdepth.... (sure ideally both - but we are living in the world of the Z80)...  Unless we are back to the CPC just being a controller of some kind!

There is something very endearing about the AmDrum - maybe I'm just being nostalgic :)

It be interesting to try using a say a 24bit ADC and dither down to 8bits with a small FPGA and see if it offered a noticeable improvement over the simple 8bit ADC used in the musicMachine... would give us manageable sized audio samples for the CPC.
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 09:05, 30 April 21
WRT the Fairlight I was accidentally careful to say "sampled music" as  a quick read of the links it appears that the PPG 340/380 used wave synthases (earlier design seemed to based on more traditional oscillator type designs) there seems to be no mention of PCM sampling - not sure about the synclavier, but really interesting as its the first I've heard Wolfgang Palm... which is sad I guess!
Maybe I am wrong. My understanding is that a WaveTable is basically a set of PCM Sample Waveforms (of the same length). They are very short admittedly, 128 samples in the original, and that x64. And then there is interpolation performed as one cycles through the set of waveforms, over time, creating interesting "morphs" and harmonics. So it's a superset of simple PCM sample playing AFAIK (with shorter samples, but more of them to create temporal variations of the waveforms via interpolation).

https://en.wikipedia.org/wiki/Wavetable_synthesis (https://en.wikipedia.org/wiki/Wavetable_synthesis)

It's the sound of early Tangerine Dream; the PPG Wave 2 is one of the most iconic synths ever:

https://youtu.be/9bZ_VGFi5X0 (https://youtu.be/9bZ_VGFi5X0)

So beautiful and unique in its sonic characteristics.

https://youtu.be/8JpfHt8CiPk (https://youtu.be/8JpfHt8CiPk)
Quote
I've schematics somewhere for the early fairlight (they are available on the internet - a French guy seems involved with legacy support IIRC) where 8bit sampling - with later fairlight 3 being 16bits, not sure there was ever a 24bit fairlight...
You are right, I misread - 24 kHz! Wow, but it had 208 KBs according to Wikipedia... what did they do with all the RAM?? That should have held more than 1.5 seconds... well maybe the OS needed the rest :-)

Quote
Back to the CPC :) I think CPU power is more limiting them memory for higher quality samples - 8bit with decent dither can give surprisingly good results, so the question is whats more important higher sample rate or greater bitdepth.... (sure ideally both - but we are living in the world of the Z80)...  Unless we are back to the CPC just being a controller of some kind!

There is something very endearing about the AmDrum - maybe I'm just being nostalgic :)

It be interesting to try using a say a 24bit ADC and dither down to 8bits with a small FPGA and see if it offered a noticeable improvement over the simple 8bit ADC used in the musicMachine... would give us manageable sized audio samples for the CPC.
Certainly worth trying, give it a go! The more music hardware for the CPC, the better!  :)
Title: Re: LambdaSpeak FS
Post by: VintageAdvantage on 22:36, 30 April 21
but really interesting as its the first I've heard Wolfgang Palm... which is sad I guess!

Here is a bit more about Wolfgang

https://youtu.be/8Qk9RHOuzUA (https://youtu.be/8Qk9RHOuzUA)

https://youtu.be/3ntDgDU6ClM (https://youtu.be/3ntDgDU6ClM)
https://www.youtube.com/watch?v=vLDt5V4CGMQ
Title: Re: LambdaSpeak FS
Post by: GUNHED on 20:40, 02 May 21
IMHO 8 bit dept for CPC is just perfect. For anything else... we still can start a MP3.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 21:42, 06 May 21
Complete MIDI setup for 80 US Dollars...
https://www.youtube.com/watch?v=_gF5pupP_6o
Title: Re: LambdaSpeak FS
Post by: RetroCPC on 22:38, 06 May 21
Very interesting chips...

What do you think of the SAM5504B?

https://www.dream.fr/devices.html#S2 (https://www.dream.fr/devices.html#S2)

https://www.dream.fr/pdf/Serie5000/SAM_Datasheets/SAM5504B.pdf

Has SPDIF input  / output and DAC interface - now I'd be happy to design hardware for the CPC if you could support the software...
Title: Re: LambdaSpeak FS
Post by: GUNHED on 04:15, 07 May 21
Honestly, that's new for me. I need to read that.

Just hope that you and Michael can create an TextToSpeech replacement for a decent price. Seems that the promotion is over, and won't come back in time.

'Everything Speech & Sound' is getting more and more interesting on CPCs now.  :) :) :)
Title: Re: LambdaSpeak FS
Post by: TotO on 09:00, 07 May 21
Very interesting chips...
What do you think of the SAM5504B?
It is used into the Dream Blaster (X2) expansion sold by SerdaShop. (I have bought one using the 2295 for tests 5 years ago)
The board is designed to be used with a Wave Blaster connector to extend the audio capabilities of any PC sound board or compatible (Atari ST MIDI, ...). The Dream IC are tiny and can't be soldered outside an industrial process.
Title: Re: LambdaSpeak FS
Post by: RetroCPC on 11:10, 07 May 21
Dream Blaster (X2)
Just hope that you and Michael can create an TextToSpeech replacement for a decent price. Seems that the promotion is over, and won't come back in time.

I just tried to order some S1V30120F01A100 today from Mouser and they have non in stock - next delivery expected September 28 2021!!!!

I'll try other vendors, but they are not common parts...

The worldwide IC situation is getting really critical - I'm not sure what we can do if we cannot purchase the IC's...
Title: Re: LambdaSpeak FS
Post by: GUNHED on 16:14, 07 May 21
No problem, till September it's only four months, just a bit time to enhance the software for LS.  :)
Most of us are old, times are passing quickly.  ;) :laugh:
Title: Re: LambdaSpeak FS
Post by: Animalgril987 on 19:09, 07 May 21
Most of us are old, times are passing quickly.   
The older we are, the more quickly the time passes :(
Title: Re: LambdaSpeak FS
Post by: GUNHED on 17:48, 14 May 21
Using the LambdaSpeak FS and the relatively cheap Chill 2 board you get more than a keyboard + synthesizer. Take a look if you like MIDI...


https://www.youtube.com/watch?v=kcRic3ZGMYw
Title: Re: LambdaSpeak FS
Post by: eto on 19:19, 14 May 21
Is the CPC playing the .MID files or still the PC that sends the .MID to the CPC?
Title: Re: LambdaSpeak FS
Post by: RetroCPC on 12:07, 15 May 21
Really impressive - as soona s ai complete the current PCB I'm working on I plan to contact Dream and see whats possible - I'd like to use there later SAM5xxx series IC's as we can then easily make a CPC "Sound card" that outperforms the Roland box :)
Title: Re: LambdaSpeak FS
Post by: GUNHED on 22:07, 17 May 21
Oh, I need to ask, because we just developed an expanded serial mode, so I got distracted.
Title: Re: LambdaSpeak FS
Post by: RetroCPC on 23:53, 17 May 21
Any more details on the extended serial mode?
Title: Re: LambdaSpeak FS
Post by: GUNHED on 19:44, 18 May 21
Any more details on the extended serial mode?
See Github...

https://github.com/lambdamikel/LambdaSpeak-FS
Title: Re: LambdaSpeak FS
Post by: GUNHED on 02:23, 26 May 21
Hello dear LFS users...

For the LambdaSpeak FS there is now Firmware 10 and an updated RSX ROM for it.
The update is about the serial connection / protocol, which is now more save. (see my homepage).

If you need you ATMega644 updated with new Firmware, I can do that for you of course :-)

A new batch of 10 boards is nearly ready btw.
Title: Re: LambdaSpeak FS
Post by: GUNHED on 17:44, 02 June 21
Is there any interest in XMODEM transfers using the serial port?
Title: Re: LambdaSpeak FS
Post by: HAL 6128 on 21:18, 02 June 21
You mean the CP/M tool XMODEN? It's nice to transfer files via Putty to the CPC. Why not?
Title: Re: LambdaSpeak FS
Post by: GUNHED on 22:59, 02 June 21
You mean the CP/M tool XMODEN? It's nice to transfer files via Putty to the CPC. Why not?
For today I added to the ROM for LFS just two new commands, to transfer data using XMODEM protocol:

|S.XBLK: The command '|S.XBLK,address,length' will send a memory area to the serial port using XMODEM. The parameter 'address' defines the start address in RAM and 'lenght' defines the number of 128 byte blocks.

|R.XBLK: This command '|R.XBLK,address' is used to receive data via XMODEM and to store it in RAM at 'address'.

Attention: Before using commands '|S.XBLK' and '|R.XBLK' please switch the LSF into serial mode! Stable up to 14400 baud, tomorrow I'll make it even faster.  :)