Giter Site home page Giter Site logo

bqneditor's Introduction

BQN Editor

Website

Changelog

This is an unofficial online editor for the BQN programming language made by Fun Maker. You can find the source code on GitHub. Currently it is using bqn.js as the interpreter.

Multimedia output

•Show 𝕩 system function automatically detects image and audio output depending on the shape (≢𝕩). You can turn this feature off in settings.

Images have to be at least 10x10. They are represented as arrays of 0-255 values. Allowed shapes are: h‿w (grayscale) h‿w‿3 (RGB) h‿w‿4 (RGBA) where h is height and w is width.

Example grayscale gradient: +´¨ ↕ 127‿127

Audio is represented as an array of at least 64 PCM samples from -1 to 1. It can be a list for mono audio, or an array of shape s‿2 or 2‿s for stereo audio. You can read and change sample rate using

Example sine wave: •math.Sin 2 × π × 60 × ↕⊸÷ •SampleRate @

You can find more examples in the editor's menu.

System-provided values

All bqn.js system values are avaliable. BQN Specification includes standard system values. Note, this list includes many system values that are not avaliable in bqn.js and therefore in BQN Editor. You can list all supported system values using: •listSys Additionally, BQN Editor adds following system values:

  • •GetLine 𝕩 Reads next line from program input. 𝕩 is ignored.
  • •SampleRate 𝕩 Gets current sample rate. 𝕩 is ignored.
  • •SetSampleRate 𝕩 Sets sample rate. 𝕩 must be an integer between 1 and 4'294'967'295 inclusive.

You can list all the avaliable system values using: •listSys

Source code usage

Run development

npm run start

Build production

npm run build

bqneditor's People

Contributors

funmaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bqneditor's Issues

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.