Giter VIP home page Giter VIP logo

ayumi's Introduction

News

JavaScript implementation by Alexander Kovalenko: https://github.com/alexanderk23/ayumi-js

Ayumi API reference

void ayumi_configure(struct ayumi* ay, int is_ym, double clock_rate, int sr)

Configures the ayumi structure.

ay: The pointer to the ayumi structure.

is_ym: 1 if the chip is YM2149.

clock_rate: The clock rate of the chip.

sr: The output sample rate.

void ayumi_set_pan(struct ayumi* ay, int index, double pan, int is_eqp)

Sets the panning value for the specified sound channel.

ay: The pointer to the ayumi structure.

index: The index of the sound channel.

pan: The stereo panning value [0-1].

is_eqp: 1 if "equal power" panning is used.

void ayumi_set_tone(struct ayumi* ay, int index, int period)

Sets the tone period value for the specified sound channel.

ay: The pointer to the ayumi structure.

index: The index of the sound channel.

period: The tone period value [0-4095].

void ayumi_set_noise(struct ayumi* ay, int period)

Sets the noise period value.

ay: The pointer to the ayumi structure.

period: The noise period value [0-31].

void ayumi_set_mixer(struct ayumi* ay, int index, int t_off, int n_off, int e_on)

Sets the mixer value for the specified sound channel.

ay: The pointer to the ayumi structure.

index: The index of the sound channel.

t_off: 1 if the tone is off.

n_off: 1 if the noise is off.

e_on: 1 if the envelope is on.

void ayumi_set_volume(struct ayumi* ay, int index, int volume)

Sets the volume for the specified sound channel.

ay: The pointer to the ayumi structure.

index: The index of the sound channel.

volume: The volume [0-15].

void ayumi_set_envelope(struct ayumi* ay, int period)

Sets the envelope period value.

ay: The pointer to the ayumi structure.

period: The envelope period value [0-65535].

void ayumi_set_envelope_shape(struct ayumi* ay, int shape)

Sets the envelope shape value.

ay: The pointer to the ayumi structure.

shape: The envelope shape index [0-15].

void ayumi_process(struct ayumi* ay)

Renders the next stereo sample in ay->left and ay->right.

ay: The pointer to the ayumi structure.

void ayumi_remove_dc(struct ayumi* ay)

Removes the DC offset from the current sample.

ay: The pointer to the ayumi structure.

ayumi's People

Contributors

true-grue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ayumi's Issues

supported formats

Hi

This is not an issue but rather a question:

I just came across the JavaScript version of your player and I found that it plays some .fym format that I haven't encountered before (see my various web players: http://www.wothke.ch/tinyrsid/index.php/webaudio-players). Actually that seems to be the only file format that is supported by the JavaScript version of your player. From what I see it is some zlib compressed file and guessing from the variable name it supposedly is some kind of "PSG dump".. but apparently nor the .fym nor the content ".psg" file is something that other players like ZXtune know how to handle...

Are these any "standard" file formats (and if so could you point me to some docs? and where can respective music files be found?) or are those formats specific to your player?

Cheers.

Usage permission

Hi! I've developed this Z80 asm AY-3-8910 player, so, I'm working on a crossplatform Tracker to generate songs to that player. Can I use your library to generate the AY sounds at the tracker?

Also, may you upload some code usage? The simplest example will be helpful.
Thanks.

License

Hello! I forked your project for using it in my ZX Spectrum emulator - I made bare library repository, which can be used as static/dynamic library (I plan to write micro Makefiles in future) so I can write Rust bindings for it. But I can't find your project's license. So, what type of license is using by your project? Can I distribute your lib as a part of my open-source project?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.