Samples



Sample editor


Using the popup on the tree of files in a project you can access the sample editor.

What you see is a gui to handle samples, handle means:

For one reason or another, the tooltips can not be displayed on modal windows in Vide, for that reason some more information about the gui:

Some general information:

  1. Internally all samples are kept in the format:

    this is what you see in the sample display window (left channel)

  2. Recording is done with the settings you enter to the right (and is than converted to above format)

  3. (the original) samples can be saved, save format is "wav", saving is done in the above format, since in this format all information is kept (internally) anyway.

  4. (the vectrex) samples can be saved, save format is "wav", saving is done in the format chosen (only sample rate can be chosen, the rest is always set).

  5. you can save the vectrex samples as "raw" data, the raw data uses 8 bit signed data (this is what vectrex wants)

The generated "play" routines use sampled data "backwards", therefor you can select to reverse the order of the data statements generated.

The data is output in data-statements, the format of the data is described in the (generated) source. With the sourcecode some example code is also generated.

Technically

Samples as implemented now have NOTHING whatsoever to do with PSG.

It might be possible to implement samples as "volume" levels of PSG channels, but as of now nobody has tried that.

The current implementation of playing samples is using a direct DAC -> audio implementation.

Technical meaning:

The sample data is taken directly (as signed 8 bit values), fed into the vectrex DAC and converted to analog values. Thru the multiplexer the resulting analog values are fed DIRECTLY to the vectrex sound hardware (not the PSG).

A MUXSEL value of 11 (and mux select enabled) does that with data in port A of VIA.