Software : : U1Synth 1.1
Posted By: Krashan. on 2012/8/30 19:48:05
U1Synth is one of results of MorphOS.pl Reggae media saving API bounty. The program is an example of using new Reggae capabilities, writing Reggae custom classes and general MUI programming. Source code of the program is released on BSD license. In the current version of U1Synth the synthesis engine is very simple: a fixed sine wave generator with adjustable ADSR envelope. It may be made more advanced in the future. The archive of the program contains also a set of new and updated Reggae classes, which are installed by installation script.
 
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Joined: 2007/4/9
    Posts: 874
    From: Kingston upon ...
    After installing and rebooting, the application works well here, however fails to save the file (in any format).

    Snoopium reports:

    [1] [U1Synth] [Open] [env:mui/Dirlist-Format.txt] [Read] [OK]
    [2] [U1Synth] [ChangeDir] [Ram Disk:ENV] [] []
    [3] [U1Synth] [Open] [mui/filepanel] [Read] [OK]
    [4] [U1Synth] [ChangeDir] [SYS:] [] []
    [5] [U1Synth] [ChangeDir] [Ram Disk:ENV] [] []
    [6] [U1Synth] [Open] [muidebug] [Read] [Fail]
    [7] [U1Synth] [ChangeDir] [SYS:] [] []
    [8] [U1Synth] [Open] [env:mui/ASLREQUESTER.1.prefs] [Read] [OK]
    [9] [U1Synth] [LockScreen] [Workbench] [] [OK]
    [10] [U1Synth] [Open] [env:mui/ASLREQUESTER.1.prefs] [Read] [OK]
    [11] [U1Synth] [Open] [env:mui/ASLREQUESTER.1.prefs] [Write] [OK]
    [12] [U1Synth] [Open] [envarc:mui/ASLREQUESTER.1.prefs] [Read] [OK]
    [13] [U1Synth] [Open] [envarc:mui/ASLREQUESTER.1.prefs] [Write] [OK]
    [14] [ramlib] [Load] [MOSSYS:LIBS/multimedia/audiopcm.encoder.elf] [] [Fail]
    [15] [ramlib] [Open] [MOSSYS:LIBS/multimedia/audiopcm.encoder.elf] [Read] [Fail]
    [16] [ramlib] [Open] [MOSSYS:LIBS/multimedia/audiopcm.encoder.elf] [Read] [Fail]
    [17] [ramlib] [Load] [MOSSYS:LIBS/multimedia/audiopcm.encoder] [] [Fail]
    [18] [ramlib] [Open] [MOSSYS:LIBS/multimedia/audiopcm.encoder] [Read] [Fail]
    [19] [ramlib] [Open] [MOSSYS:LIBS/multimedia/audiopcm.encoder] [Read] [Fail]
    [20] [ramlib] [Load] [LIBS:multimedia/audiopcm.encoder.elf] [] [Fail]
    [21] [ramlib] [Open] [LIBS:multimedia/audiopcm.encoder.elf] [Read] [Fail]
    [22] [ramlib] [Open] [LIBS:multimedia/audiopcm.encoder.elf] [Read] [Fail]
    [23] [ramlib] [Load] [multimedia/audiopcm.encoder.elf] [] [Fail]
    [24] [ramlib] [Open] [multimedia/audiopcm.encoder.elf] [Read] [Fail]
    [25] [ramlib] [Open] [multimedia/audiopcm.encoder.elf] [Read] [Fail]
    [26] [ramlib] [Load] [LIBS:multimedia/audiopcm.encoder] [] [Fail]
    [27] [ramlib] [Open] [LIBS:multimedia/audiopcm.encoder] [Read] [Fail]
    [28] [ramlib] [Open] [LIBS:multimedia/audiopcm.encoder] [Read] [Fail]
    [29] [ramlib] [Load] [multimedia/audiopcm.encoder] [] [Fail]
    [30] [ramlib] [Open] [multimedia/audiopcm.encoder] [Read] [Fail]
    [31] [ramlib] [Open] [multimedia/audiopcm.encoder] [Read] [Fail]
    [32] [ramlib] [Load] [PROGDIR:LIBS/multimedia/audiopcm.encoder.elf] [] [Fail]
    [33] [ramlib] [Open] [PROGDIR:LIBS/multimedia/audiopcm.encoder.elf] [Read] [Fail]
    [34] [ramlib] [Open] [PROGDIR:LIBS/multimedia/audiopcm.encoder.elf] [Read] [Fail]
    [35] [ramlib] [Load] [PROGDIR:LIBS/multimedia/audiopcm.encoder] [] [Fail]
    [36] [ramlib] [Open] [PROGDIR:LIBS/multimedia/audiopcm.encoder] [Read] [Fail]
    [37] [ramlib] [Open] [PROGDIR:LIBS/multimedia/audiopcm.encoder] [Read] [Fail]

    I noticed that audiopcm.decoder is included with the archive, however audiopcm.encoder is not.
    I haven't modified any multimedia reggae classes at all from the default installation, let alone the ones in mossys:.

    Nice little example application though, would love to be able to vary the sine frequency aswell to have a simple guitar tuner.

    Congratulations on reaching another Reggae milestone, and thankyou!
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »2012/8/30 22:45
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Joined: 2003/6/11
    Posts: 1107
    From: Białystok...
    Quote:

    After installing and rebooting, the application works well here, however fails to save the file (in any format).
    My fault, I should have test it on a clean system... I've uploaded 1.1a archive to MorphOS Files, which contains audiopcm.encoder class. I've just packed decoder instead of encoder. Of course updating decoder does not hurt too (it was not updated since MorphOS 3.1 anyway) :-). Please redownload and sorry for inconvenience.

    [ Edited by Krashan On 2012/8/31 4:18 ]
  • »2012/8/31 4:16
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Joined: 2007/4/9
    Posts: 874
    From: Kingston upon ...
    Quote:

    Quote:

    After installing and rebooting, the application works well here, however fails to save the file (in any format).
    My fault, I should have test it on a clean system... I've uploaded 1.1a archive to MorphOS Files, which contains audiopcm.encoder class. I've just packed decoder instead of encoder. Of course updating decoder does not hurt too (it was not updated since MorphOS 3.1 anyway) :-). Please redownload and sorry for inconvenience.

    [ Edited by Krashan On 2012/8/31 4:18 ]


    Thanks Krashan, just downloaded (& installed, rebooted) and saving now appears to work fine (for all formats/bitdepths/endianness).

    One question - how do I test the RAW output? The filesize suggests that the data has saved correctly, but I'm not able to get them to play in Ambient, MPlayer, or Digibooster 3 (beta 22).
    NB In Digibooster, the RAW files are not visible in the file requester when loading an instrument (although the AIFF/Wave files are visible).

    Regards



    Rich
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »2012/8/31 10:11
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Joined: 2003/10/23
    Posts: 186
    From:
    nevermind...

    [ Edited by raistlin77it On 2012/8/31 14:24 ]
    I'm nerdy in the extreme
    And whiter than sour cream

    White&Nerdy 2006 Al Yankovic
  • »2012/8/31 13:32
    Profile
  • MorphOS Developer
    Krashan
    Joined: 2003/6/11
    Posts: 1107
    From: Białystok...
    One question - how do I test the RAW output? The filesize suggests that the data has saved correctly, but I'm not able to get them to play in Ambient, MPlayer, or Digibooster 3 (beta 22).

    These files are what they are - just raw audio samples without any header. Then of course neither Ambient nor MPlayer have any idea what those raw files are. For Ambient they are just some meaningless binary data. That is why raw format is not used in general data exchange, it is not self descripting.

    You can play raw files with SoX and Play16, you can also copy them to AUDIO: device. In all three cases you have to specify bits per sample, number of channels, byte order (if more than 8 bits per sample), signedness and sampling rate.

    To load a raw sample into DigiBooster 3, click "Load" in the instrument panel, then sample load requester opens. Then you have to tick "Raw samples" checkmark. Now you will get gadgets for setting all the sample parameters and the file list displays all files. You can load anything, image, executable file, anything :-).
  • »2012/8/31 16:06
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Joined: 2007/4/9
    Posts: 874
    From: Kingston upon ...
    Quote:

    One question - how do I test the RAW output? The filesize suggests that the data has saved correctly, but I'm not able to get them to play in Ambient, MPlayer, or Digibooster 3 (beta 22).

    These files are what they are - just raw audio samples without any header. Then of course neither Ambient nor MPlayer have any idea what those raw files are. For Ambient they are just some meaningless binary data. That is why raw format is not used in general data exchange, it is not self descripting.

    You can play raw files with SoX and Play16, you can also copy them to AUDIO: device. In all three cases you have to specify bits per sample, number of channels, byte order (if more than 8 bits per sample), signedness and sampling rate.

    To load a raw sample into DigiBooster 3, click "Load" in the instrument panel, then sample load requester opens. Then you have to tick "Raw samples" checkmark. Now you will get gadgets for setting all the sample parameters and the file list displays all files. You can load anything, image, executable file, anything :-).


    Excellent, thankyou for the explanation.
    I missed the 'load raw samples' checkbox in digibooster the first time around. :oops:
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »2012/8/31 16:37
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Joined: 2004/4/15
    Posts: 565
    From:
    Really nice and it works good. It's a very nice example application of
    mui and reggae programming.

    [ Edited by eliot On 2012/8/31 16:53 ]
    regards
    eliot
  • »2012/8/31 16:51
    Profile