Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clumo

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clumo

Lumo/Clojurescript for Csound Score pre-processor

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

lumo and csound <3 clumo

Clumo is a patched version of Lumo for Csound Score pre-processor.

How to use

<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1.0


instr 1
  out poscil(0.1, p4)
endin

</CsInstruments>
<CsScore bin="clumo">
(require '[clojure.string :as string])
(require '[goog.string :as gstring])
(require 'goog.string.format)


(defn generate-event [n]
  (gstring/format "i 1 %s 1 %s" n (+ 20 (rand-int 1000))))

(string/join "\n" (map #(generate-event %) (range 0 10)))


</CsScore>
</CsoundSynthesizer>

  • Everything within the CsScore tags is a Clojurescript evaluation block. The return value must be string with valid Csound Score.
  • require andrequire-macros. js/require works for node modules. import will be added in next release.
  • ns macro will NOT work from within CsScore tags, but can be present in files that are required.
  • Classpath is by default only the root directory. Namespaces for external cljs file will therefore have to follow the relative folder-nesting structure from the root folder.

Find more information on Lumo here https://github.com/anmonteiro/lumo

Find more information about Clojure https://github.com/matthiasn/Clojure-Resources

Some helpful clojurescript exercises http://clojurescriptkoans.com/

Distributed under the Eclipse Public License, same as Lumo (see LICENSE).

Keywords

FAQs

Package last updated on 05 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc