head	1.5;
access;
symbols
	rel-0-2-1:1.4
	before_adj_struct:1.3.2.1
	jack:1.3.0.2
	rel-0-1-0:1.2
	rel-0-0-0:1.1;
locks; strict;
comment	@ * @;


1.5
date	2007.03.22.20.55.43;	author robertatwood;	state Exp;
branches;
next	1.4;

1.4
date	2006.04.05.21.53.36;	author robertatwood;	state Exp;
branches;
next	1.3;

1.3
date	2005.08.20.18.26.42;	author robertatwood;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2005.04.03.20.05.38;	author robertatwood;	state Exp;
branches;
next	1.1;

1.1
date	2004.04.16.11.36.56;	author robertatwood;	state Exp;
branches;
next	;

1.3.2.1
date	2005.12.28.16.13.34;	author robertatwood;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Updated GPL text to reflect new address of Free Software foundation
Prepare to move repository to savannah.nongnu.org
@
text
@/**************************************************************
This file is part of the Variseq program.
Variseq -- a variable pitch and step sample sequencer
Copyright (C) 2004  Robert Atwood r.atwood (at) imperial (dot) ac (dot) uk

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 
See the file COPYING for more information
**************************************************************/


#ifndef MYSOUND_H
#define MYSOUND_H
#include <stdio.h>
#include <sndfile.h>
#include <malloc.h>
/*
struct SF_INFO
{	sf_count_t	frames ;	
	int			samplerate ;
	int			channels ;
	int			format ;
	int			sections ;
	int			seekable ;
} ;
*/
#define SMOOTH 500 /* frames */

typedef struct soundbuffer {
	SF_INFO * binfo;
	float * buffer;
} sbuf;

extern void init_sbuf (sbuf * bp,int nframes);
extern void copy_sbuf(sbuf * dest, sbuf * source );
extern void free_sbuf(sbuf * dest);
void expand_sbuf (sbuf * bp,int newframes);
void read_sbuf(sbuf * bp, FILE * fp);
void save_sbuf(sbuf * bp, FILE * fp);
   

#endif
/* $Id: mysound.h,v 1.4 2006/04/05 21:53:36 robertatwood Exp $ */
@


1.4
log
@Jack version is the main branch now
@
text
@d18 1
a18 1
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
d22 1
d54 1
a54 1
/* $Id: mysound.h,v 1.3.2.1 2005/12/28 16:13:34 robertatwood Exp $ */
@


1.3
log
@Added a save/restore workspace function
Added window to display names of samples
@
text
@d46 1
d53 1
a53 1
/* $Id: mysound.h,v 1.2 2005/08/01 00:47:42 robert Exp $ */
@


1.3.2.1
log
@Checkpoint-problem with sample table address
@
text
@a45 1
extern void free_sbuf(sbuf * dest);
d52 1
a52 1
/* $Id: mysound.h,v 1.3 2005/08/20 18:26:42 robertatwood Exp $ */
@


1.2
log
@Changed the buffer writing so that samples extend into unused notes.
Altered file choose usage to correctly use the FLTK chooser
@
text
@d24 1
d47 3
d52 1
a52 1
/* $Id: mysound.h,v 1.1.1.1 2004/05/23 20:29:59 robert Exp $ */
@


1.1
log
@Initial version uploaded to Sourceforge
@
text
@d48 1
a48 1
/* $Id: mysound.h,v 1.3 2004/04/12 09:05:01 robert Exp $ */
@

