Code Monkey home page Code Monkey logo

lilyponds-scheme's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lilyponds-scheme's Issues

Combine search data

MkDocs compiles a file site/search/search_index.json, which obviously powers the search widget.

However, since the book is split into a main and multiple subbooks, the search functionality only works for the current bookpart. This is not intuitive and not useful, I want the search box to work across the whole book.

Solution: add a script that is run at the end of build.sh.

  • create copies of all JSON files
  • process them, updating the relativ links to the target pages (if that is actually necessary, think about the target directory structure!)
  • merge them to a single JSON

LilyPond syntax highlighter doesn't seem to work.

I'm on Ubuntu 20.04 using a Chrome browser (87) and I don't see any LilyPond syntax highlighting on any of the pages. I only knew that I was supposed to see it because at one point to said, "... as you can see from the syntax lighting."

Document pseudoness of random numbers

From a private discussion:

Random numbers in Scheme are only random if you initialize them to some "outside" value, e.g. the current time. This has been discussed just a few days ago: https://lists.gnu.org/archive/html/lilypond-user/2020-01/msg00496.html
Probably I should do so in the example because otherwise there's no practical use for the function.

I read but it did not help. I tried using this (set! random-state (random-state-from-platform)) in a couple of places. I got 61 or nothing

Well, it seems David's explanation was less useful than I thought.
I don't know what random-state-from-platform is, and I get an error from this.

The full documentation is at https://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Random.html#Random, and there you can find the explanation and an example for seed->random-state which David referenced.
You need to call that procedure with "something that isn't the same every time", for example with

\version "2.19.82"

#(set! *random-state*	
       (seed->random-state 
        (cdr (gettimeofday))))

#(display (random 100))

While this isn't really documented (shame on Guile!) it seems seed->random-state expects a string but auto-converts numbers to that. So it is possible to use one of the parts of the current time pair to seed the random state and get a different number in every run.

I think this should be described somewhere. Maybe a section with "various topics"?

change procedure to mak it work

#((lambda var-list
(display (car var-list))
(newline)
(length var-list))
'one 'two 'three 'four)

should be:
((lambda var-list
(display (car var-list))
(newline)
(display (length var-list)))
'one 'two 'three 'four)

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.