Re: [racket-users] Playing with rsound

2019-12-07 Thread wanderley.guimar...@gmail.com
Thanks! I will play with clip and assemble. On Sat, Dec 7, 2019 at 4:39 PM John Clements wrote: > The problem here is that the piano notes are not all the same duration. > Specifically, your chord (chord 60 64 67) is a bit longer: > > (rs-frames (chord 60 64 67)) -> 161634 frames > (rs-frames

Re: [racket-users] Playing with rsound

2019-12-07 Thread 'John Clements' via Racket Users
The problem here is that the piano notes are not all the same duration. Specifically, your chord (chord 60 64 67) is a bit longer: (rs-frames (chord 60 64 67)) -> 161634 frames (rs-frames (piano-tone 72)) -> 144000 frames There are a lot of ways of solving this, including clipping the two sound

[racket-users] Playing with rsound

2019-12-07 Thread wanderley.guimar...@gmail.com
I started to playing around with rsound while reading its documentation. I wrote the following code: #lang racket (require rsound) (require rsound/piano-tones) (define (chord . notes) (rs-overlay* (map piano-tone notes))) (play (rs-overlay (rs-append (chord 60 64 67)

Re: [racket-users] Scribble output without navigation

2019-12-07 Thread 'Reuben Thomas' via Racket Users
On Fri, 6 Dec 2019 at 15:43, Matthew Flatt wrote: > Do 'no-toc and 'no-sidebar style properties on the main part help? Or > does that still leave navigation elements that you want removed? > That's a great improvement, thanks, although it still leaves the "tocset" div, now empty. What I couldn'

[racket-users] futures-sort update

2019-12-07 Thread Dominik Pantůček
Hello Racketeers, I am continuing my work on cleaning up our private source code and publishing it as a part of my futures-sort[1] package. Current state of the package is: - configurable parallelism depth - in-place parallel merge-sort of both vector and fxvector - parallel merge-sort with resul

Re: [racket-users] How to use dates (especially gregor) with Typed Racket?

2019-12-07 Thread Ben Greenman
On 12/7/19, Marc Kaufmann wrote: > Thanks Ben and Jon, that did the trick. > > I realized when following the code that the structure wasn't exported - but > > I didn't know how to work around that. I now also checked the > documentation, and the only thing I found on opaque types is > https://docs

Re: [racket-users] Scribble output without navigation

2019-12-07 Thread 'Reuben Thomas' via Racket Users
On Fri, 6 Dec 2019 at 15:32, Sam Tobin-Hochstadt wrote: > Is there a reason that not showing it is a problem, relative to not > having it in the HTML? The CSS approach is quite easy. > I'm trying to generate XHTML for inclusion in web sites (as the main page contents) and ePUB files, so it's jus

Re: [racket-users] How to use dates (especially gregor) with Typed Racket?

2019-12-07 Thread Marc Kaufmann
I meant `require/typed` obviously, not `require-typed`. On Saturday, December 7, 2019 at 11:17:00 AM UTC+1, Marc Kaufmann wrote: > > Thanks Ben and Jon, that did the trick. > > I realized when following the code that the structure wasn't exported - > but I didn't know how to work around that. I

Re: [racket-users] How to use dates (especially gregor) with Typed Racket?

2019-12-07 Thread Marc Kaufmann
Thanks Ben and Jon, that did the trick. I realized when following the code that the structure wasn't exported - but I didn't know how to work around that. I now also checked the documentation, and the only thing I found on opaque types is https://docs.racket-lang.org/ts-reference/special-forms

Re: [racket-users] Day 7 Advent of Code - continuations?

2019-12-07 Thread wanderley.guimar...@gmail.com
I solved the problem without continuations but I will study them and rewrite my solution to use them. It might be helpful in future problems. On Fri, Dec 6, 2019 at 11:58 PM Daniel Prager wrote: > Does anyone have a continuation-based solution to AoC day 7? > > https://adventofcode.com/2019/day/